Last active
June 10, 2019 03:36
-
-
Save mstrimas/d61bfc616082894b3f4ca62a6a8bba15 to your computer and use it in GitHub Desktop.
eBird Best Practices Setup Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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