get_tnrs_names {datelife} | R Documentation |
Process a character vector of taxon names with TNRS
Description
make_datelife_query2
always uses TNRS (Taxonomic Name Resolution Service
to process input taxon names, to correct misspellings and
taxonomic name variations with tnrs_match()
, a wrapper of rotl::tnrs_match_names()
).
Usage
get_tnrs_names(
input = c("Rhea americana", "Pterocnemia pennata", "Struthio camelus"),
reference_taxonomy = "ott",
...
)
Arguments
input |
Taxon names as a character vector of taxon names. Two or more
names can be provided as a single comma separated string or concatenated with |
reference_taxonomy |
A character vector specifying the reference taxonomy to use for TNRS. Options are "ott", "ncbi", "gbif" or "irmng". The function defaults to "ott". |
... |
Arguments passed on to
|
Value
A datelifeTNRS
object, which is a list of three elements:
- $cleaned_names
A character vector of names provided as input.
- $tnrs_names
A character vector of taxon names processed with TNRS.
- $ott_ids
A numeric vector of Open Tree of Life Taxonomy (OTT) ids.