Process a character vector of taxon names with TNRS
Source:R/datelife_query_tnrs.R
get_tnrs_names.Rdmake_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
c().- 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
rotl::tnrs_match_namescontext_namename of the taxonomic context to be searched (length-one character vector or
NULL). Must match (case sensitive) one of the values returned bytnrs_contexts. Default to "All life".do_approximate_matchingA logical indicating whether or not to perform approximate string (a.k.a. “fuzzy”) matching. Using
FALSEwill greatly improve speed. Default, however, isTRUE.idsA vector of ids to use for identifying names. These will be assigned to each name in the names array. If ids is provided, then ids and names must be identical in length.
include_suppressedOrdinarily, some quasi-taxa, such as incertae sedis buckets and other non-OTUs, are suppressed from TNRS results. If this parameter is true, these quasi-taxa are allowed as possible TNRS results.