R/opentree_taxonomy_general.R
tnrs_match.phylo.RdTaxon name resolution service (tnrs) applied to tips of a phylogeny
tnrs_match.phylo(phy, tip, reference_taxonomy = "otl", ...)
| phy | A phylo object |
|---|---|
| tip | A vector of mode numeric or character specifying the tips to match. If left empty all tips will be matched. |
| reference_taxonomy | A character vector specifying the reference taxonomy to use for tnrs. |
| ... | Arguments passed on to
|
An object of class phylo and match_names. See details.
The output will preserve all elements from original input phylo object and will add
A character vector indicating the state of mapping of phy$tip.labels:
A character vector preserving all original labels.
A numeric vector with ott id numbers of matched tips. Unmatched and original tips will be NaN.
if tips are duplicated, tnrs will only be run once (avoiding increases in function running time) but the result will be applied to all duplicated tip labels