Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query analyses with NULL review_data #70

Open
egouldo opened this issue Dec 6, 2022 · 1 comment
Open

query analyses with NULL review_data #70

egouldo opened this issue Dec 6, 2022 · 1 comment
Assignees
Labels
bug an unexpected problem or unintended behavior

Comments

@egouldo
Copy link
Owner

egouldo commented Dec 6, 2022

Some rows of analyst data in ManyEcoEvo (targets target) have NULL for review data. Need to check that this is OK / expected, and not the result of an error where the review data is lost / missing at some point.

@egouldo egouldo added the bug an unexpected problem or unintended behavior label Dec 6, 2022
@egouldo egouldo self-assigned this Dec 6, 2022
@egouldo egouldo transferred this issue from another repository Oct 27, 2023
@egouldo egouldo transferred this issue from another repository Aug 5, 2024
@egouldo egouldo transferred this issue from another repository Aug 5, 2024
@egouldo egouldo added this to the Respond Reviewer Comments milestone Aug 10, 2024
@egouldo
Copy link
Owner Author

egouldo commented Sep 10, 2024

These are the id's with missing review data:

Local .Rprofile detected at /Users/elliotgould/Documents/GitHub/ManyEcoEvo/.Rprofile

library(tidyverse)
library(ManyEcoEvo)
#> Loading required package: rmarkdown
#> Loading required package: bookdown
#> Registered S3 method overwritten by 'parsnip':
#>   method          from 
#>   print.nullmodel vegan
#> Registered S3 method overwritten by 'lava':
#>   method         from    
#>   print.estimate EnvStats

targets::tar_read(ManyEcoEvo) %>%
  nest_join(targets::tar_read(ManyEcoEvo) %>% pull(data, name = dataset) %>% map(~ select(.x, review_data) %>% drop_na(review_data)) %>% map2(., names(.), ~ mutate(.x, dataset = .y)) %>% bind_rows(), name = "review_data") %>%
  rowwise() %>%
  mutate(missing_review_data = list(anti_join(data, review_data))) %>%
  hoist(missing_review_data, "id_col") %>%
  pull(id_col, name = dataset)
#> Joining with `by = join_by(dataset)`
#> Joining with `by = join_by(review_data)`
#> Joining with `by = join_by(review_data)`
#> $`blue tit`
#> [1] "Bulli-2-1-1"  "Bulli-1-2-2"  "Bulli-1-2-1"  "Anakie-2-1-1" "Batlow-1-1-1"
#> [6] "Batlow-1-1-2" "Batlow-1-1-3" "Casino-3-1-2" "Casino-3-1-1"
#> 
#> $eucalyptus
#> [1] "Boorowa-1-3-1"  "Boorowa-1-2-1"  "Bermagui-1-3-1" "Bermagui-1-3-2"
#> [5] "Bermagui-1-3-3" "Bermagui-1-2-1" "Bermagui-1-2-2" "Bermagui-1-2-3"
#> [9] "Bungonia-1-1-1"

Created on 2024-09-10 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant