get_taxID: Get taxon ID from taxonomy database.

Description Usage Arguments Value Author(s) References Examples

View source: R/taxonomy.R

Description

This function returns the unique ID for a specified taxon name by looking up a taxonomy database.

Usage

1
get_taxID(lineage, db, multimatch = NA)

Arguments

lineage

character vector of taxon names or semicolon-delimited lineage strings.

db

a valid taxonomy database (as a data.frame object). See taxonomy for details.

multimatch

integer giving the value to return if the query matches multiple entries. Defaults to NA_integer_.

Value

An integer giving the unique taxon ID, or NA if the taxon is not found in the database.

Author(s)

Shaun Wilkinson

References

Federhen S (2012) The NCBI Taxonomy database. Nucleic Acids Research 40, D136-D143. doi:10.1093/nar/gkr1178.

https://www.ncbi.nlm.nih.gov/taxonomy/

Examples

1
2

insect documentation built on Aug. 9, 2021, 5:07 p.m.