get_taxID {insect} | R Documentation |
Get taxon ID from taxonomy database.
Description
This function returns the unique ID for a specified taxon name by looking up a taxonomy database.
Usage
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 |
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
data(whale_taxonomy)
get_taxID("Odontoceti", db = whale_taxonomy)
[Package insect version 1.4.2 Index]