taxo_name: Get the names of taxa from their ids

Description Usage Arguments See Also Examples

View source: R/taxo.R

Description

Get the names of taxa from their ids

Usage

1
taxo_name(id, taxo, unique = FALSE)

Arguments

id

numerical ids of taxonomic classes (typically a single one)

taxo

a taxonomy data.frame, typically from extract_taxo

unique

force names to be unique by adding the parent name when needed

See Also

Other taxonomy-related functions: ancestors, as.taxo, children, descendants, extract_taxo, is_leaf, lineage, parent, taxo_id

Examples

1
2
3
4
data(taxo)
taxo_name(5, taxo)
taxo_name(2:6, taxo)
taxo_name(2:6, taxo, unique=TRUE)

jiho/ecotaxar documentation built on June 28, 2018, 4:23 p.m.