Learn R Programming

taxize (version 0.0.6)

get_tsn: Get the TSN code for a search term.

Description

Retrieve the taxonomic serial numbers (TSN) of a species from ITIS.

Usage

get_tsn(searchterm, searchtype = "sciname",
    verbose = TRUE)

Arguments

searchterm
character; A vector of common or scientific names.
searchtype
character; One of 'sciname', 'anymatch', 'comnamebeg', 'comname', 'comnameend'.
verbose
logical; should progress be printed?

Value

  • A vector of taxonomic serial numbers (TSN). If a species is not found NA. If more than one TSN is found the function asks for user input. See functions in the itis function.

See Also

get_uid, classification

Examples

Run this code
get_tsn(searchterm = "Quercus douglasii", searchtype = "sciname")
get_tsn(searchterm = "Chironomus riparius", searchtype = "sciname")
get_tsn(c("Chironomus riparius","Quercus douglasii"), "sciname")
splist <- c("annona cherimola", 'annona muricata', "quercus robur",
		"shorea robusta", "pandanus patina", "oryza sativa", "durio zibethinus")
get_tsn(splist, "sciname")

Run the code above in your browser using DataLab