You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Nate, that's not currently how the auk_*() functions work, they require a valid non-NULL input. In theory this could be added, but for consistency would have to be added to all the filtering functions, which I don't have the bandwidth for at the moment. I'll leave this open and consider adding the functionality in future if I have some free time. For now though, I think you're stuck using the if statement approach you have been using.
Hello,
I would like to avoid using an if statement in the following lines of code from one of my scripts:
Condition next action on whether NCBA records only are desired.
if (NCBA_only == TRUE) {
sampling <- EBD_sampling %>%
auk_sampling() %>%
auk_project("EBIRD_ATL_NC") %>%
auk_filter(file = "TMP_EBD.txt", overwrite = TRUE) %>%
read_sampling() %>%
data.frame()
} else {
sampling <- EBD_sampling %>%
auk_sampling() %>%
auk_filter(file = "TMP_EBD.txt", overwrite = TRUE) %>%
read_sampling() %>%
data.frame()
}
Is there a way that I can pass a null value to auk_project() so that I can do something like:
project <- NULL
Read in sampling data frame with auk
sampling <- EBD_sampling %>%
auk_sampling() %>%
auk_project(project = project) %>%
auk_filter(file = "TMP_EBD.txt", overwrite = TRUE) %>%
read_sampling() %>%
data.frame()
If I set project <- NULL in that case, the code won't run, but I would like for it to proceed anyways.
Any help would be greatly appreciated!
Nate
The text was updated successfully, but these errors were encountered: