taxize (version 0.1.5)

get_eolid: Get the EOL ID from Encyclopedia of Life from taxonomic names.

Description

Note that EOL doesn't expose an API endpointn for directly querying for EOL taxon ID's, so we first use the function eol_search to find pages that deal with the species of interest, then use eol_pages to find the actual taxon IDs.

Usage

get_eolid(sciname, ask = TRUE, verbose = TRUE)

Arguments

sciname
character; scientific name.
ask
logical; should get_eolid be run in interactive mode? If TRUE and more than one ID is found for the species, the user is asked for input. If FALSE NA is returned for multiple matches.
verbose
logical; If TRUE the actual taxon queried is printed on the console.

Value

  • A vector of unique identifiers (EOL). If a taxon is not found NA. If more than one ID is found the function asks for user input.

See Also

get_tsn, get_uid, get_tpsid

Examples

Run this code
get_eolid(sciname='Poa annua')
get_eolid(sciname='Pinus contorta')
get_eolid(sciname='Puma concolor')

get_eolid(c("Poa annua", "Pinus contorta"))

# When not found
get_eolid(sciname="uaudnadndj")
get_eolid(c("Chironomus riparius", "uaudnadndj"))

Run the code above in your browser using DataCamp Workspace