Learn R Programming

auk (version 0.2.2)

ebird_species: Lookup species in eBird taxonomy

Description

Given a list of common or scientific names, check that they appear in the official eBird taxonomy and convert them all to scientific names, common names, or species codes. Un-matched species are returned as NA.

Usage

ebird_species(x, type = c("scientific", "common", "code"))

Arguments

x

character; species to look up, provided as scientific or English common names, or a mixture of both. Case insensitive.

type

character; whether to return scientific names (scientific), English common names (common), or 6-letter eBird species codes (code).

Value

Character vector of species identified by scientific name, common name, or species code.

See Also

Other helpers: auk_getpath, auk_version_date

Examples

Run this code
# NOT RUN {
# mix common and scientific names, case-insensitive
species <- c("Blackburnian Warbler", "Poecile atricapillus",
             "american dipper", "Caribou")
# note that species not in the ebird taxonomy return NA
ebird_species(species)
# }

Run the code above in your browser using DataLab