Hello,
I'm new to auk, and working with data for Great Green Macaws to estimate presence/absence in different seasons. I've filtered my ebd and sampling event data to Costa Rica and then attempted to zero fill these. Since i'm working with a sensitive species i'm using a customized EBD. However, I am getting an error that there are some checklists in the EBD that are missing in the sampling data. i tryied to filter for the last edited date to exclude checklist that were added after Mar2020. Here is my code:
library(auk)
library(tidyverse)
f_ebd <- "~/data/ebd_GGM.txt"
f_sed <- "~/data/sed_GGM.txt"
ebd_2020_GGMA <- auk_ebd("ebd_sensitive_relMar-2020.txt",
file_sampling = "ebd_sampling_relAug-2020.txt") %>%
auk_species("Great Green Macaw") %>%
auk_country("Costa Rica") %>%
auk_date(c("2019-01-01", "2019-03-31")) %>%
auk_last_edited(date = c("2019-01-01", "2020-02-29")) %>%
auk_complete() %>%
auk_filter(f_ebd, file_sampling = f_sed, overwrite=TRUE)
ebd_only <- read_ebd(f_ebd)
sed_only <- read_sampling(f_sed)
nrow(ebd_only)
#[1] 525
nrow(sed_only)
#[1] 18423
ebd_zf <- auk_zerofill(f_ebd, sampling_events = f_sed)
ebd_zf
Error in auk_zerofill.data.frame(x = ebd, sampling_events = sed, species = species, :
Some checklists in EBD are missing from sampling event data.
Wondering if anyone has any insight into why this may be the case, and how I could solve this considering that i can't download a more recent custumized EBD file.
thanks,
Sofia
Hello,
I'm new to auk, and working with data for Great Green Macaws to estimate presence/absence in different seasons. I've filtered my ebd and sampling event data to Costa Rica and then attempted to zero fill these. Since i'm working with a sensitive species i'm using a customized EBD. However, I am getting an error that there are some checklists in the EBD that are missing in the sampling data. i tryied to filter for the last edited date to exclude checklist that were added after Mar2020. Here is my code:
Wondering if anyone has any insight into why this may be the case, and how I could solve this considering that i can't download a more recent custumized EBD file.
thanks,
Sofia