get_species_path | R Documentation |
This helper function can be used to get the path to a data package for a given species.
get_species_path(species, path = ebirdst_data_dir(), check_downloaded = TRUE)
species |
character; a single species given as a scientific name, common
name or six-letter species code (e.g. "woothr"). The full list of valid
species is in the ebirdst_runs data frame included in this package. To
download the example dataset, use |
path |
character; directory to download the data to. All downloaded
files will be placed in a sub-directory of this directory named for the
data version year, e.g. "2020" for the 2020 Status Data Products. Each
species' data package will then appear in a directory named with the eBird
species code. Defaults to a persistent data directory, which can be found
by calling |
check_downloaded |
logical; raise an error if no data have been downloaded for this species. |
The path to the data package directory.
## Not run:
# get the path
path <- get_species_path("yebsap-example")
# get the path to the full data package for yellow-bellied sapsucker
# common name, scientific name, or species code can be used
path <- get_species_path("Yellow-bellied Sapsucker")
path <- get_species_path("Sphyrapicus varius")
path <- get_species_path("yebsap")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.