Get taxonomic names for a given taxonomic name query.

Usage

tax_name(query = NULL, get = NULL, db = "itis", verbose = TRUE)

Arguments

query
Taxonomic name (character).
get
The rank of the taxonomic name to get (character).
db
The database to search from (character).
verbose
logical; If TRUE the actual taxon queried is printed on the console.

Value

Taxonomic name for the searched taxon. If the taxon is not found NA is returned.

Description

Specify what database you want to use: itis or ncbi.

Examples

# A case where itis and ncbi use the same names tax_name(query="Helianthus annuus", get="family", db="itis")
Retrieving data for species ' Helianthus annuus '
http://www.itis.gov/ITISWebService/services/ITISService/getFullHierarchyFromTSN?tsn=36616
[1] "Asteraceae"
tax_name(query="Helianthus annuus", get="family", db="ncbi")
Retrieving data for species ' Helianthus annuus '
[1] "Asteraceae"
# Case where itis and ncbi use different names tax_name(query="Helianthus annuus", get="kingdom", db="itis")
Retrieving data for species ' Helianthus annuus '
http://www.itis.gov/ITISWebService/services/ITISService/getFullHierarchyFromTSN?tsn=36616
[1] "Plantae"
tax_name(query="Helianthus annuus", get="kingdom", db="ncbi")
Retrieving data for species ' Helianthus annuus '
[1] "Viridiplantae"