Skip to content

Instantly share code, notes, and snippets.

@mstrimas
Last active June 10, 2019 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstrimas/d61bfc616082894b3f4ca62a6a8bba15 to your computer and use it in GitHub Desktop.
Save mstrimas/d61bfc616082894b3f4ca62a6a8bba15 to your computer and use it in GitHub Desktop.
eBird Best Practices Setup Test
library(auk)
library(tidyverse)
tf <- tempfile()
system.file("extdata/ebd-sample.txt", package = "auk") %>%
auk_ebd() %>%
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() %>%
auk_filter(tf) %>%
read_ebd() %>%
pull(common_name) %>%
message()
unlink(tf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment