A reproducible example, called a reprex will help attract more answers.
Looking at the documentation auk_filter
's signature is
auk_filter(x, file, file_sampling, keep, drop, awk_file,
sep = "\t", filter_sampling = TRUE, execute = TRUE,
overwrite = FALSE, ...)
where x
is
auk_ebd or auk_sampling object; reference to file created by auk_ebd() or auk_sampling().
so filters
would have to be defined, similarly to
sample <- system.file("extdata/ebd-sample.txt", package = "auk")
auk_ebd(f)
You should probably set EBD_PATH environment variable to avoid having to give a full path name.
If you are looking for a specific species,
filter <- auk_ebd(f) %>%
auk_species(species = c("Canada Jay", "Blue Jay")) %>%
auk_country(country = c("US", "Canada")) %>%
auk_bbox(bbox = c(-100, 37, -80, 52)) %>%
auk_date(date = c("2012-01-01", "2012-12-31")) %>%
auk_time(start_time = c("06:00", "09:00")) %>%
auk_duration(duration = c(0, 60)) %>%
auk_complete()
See auk_get_awk_path
on page 17 of the manual for the rest of the example