Learn R Programming

taxize (version 0.0.5)

tax_name: Get taxonomic names for a given taxonomic name query.

Description

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

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.

Examples

Run this code
# A case where itis and ncbi use the same names
tax_name(query="Helianthus annuus", get="family", db="itis")
tax_name(query="Helianthus annuus", get="family", db="ncbi")

# Case where itis and ncbi use different names
tax_name(query="Helianthus annuus", get="kingdom", db="itis")
tax_name(query="Helianthus annuus", get="kingdom", db="ncbi")

Run the code above in your browser using DataLab