taxize (version 0.1.5)

get_tpsid: Get the NameID codes from Tropicos for taxonomic names.

Description

Get the NameID codes from Tropicos for taxonomic names.

Usage

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

Arguments

sciname
character; scientific name.
ask
logical; should get_tpsid 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. 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

Examples

Run this code
get_tpsid(sciname='Poa annua')
get_tpsid(sciname='Pinus contorta')

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

# When not found
get_tpsid("howdy")
get_tpsid(c("Chironomus riparius", "howdy"))

# pass to tp_classification to get a taxonomic hierarchy
tp_classification(get_tpsid(sciname='Poa annua'))

Run the code above in your browser using DataLab