taxo_name: Get the names of taxa from their ids

View source: R/taxo.R

taxo_nameR Documentation

Get the names of taxa from their ids

Description

Get the names of taxa from their ids

Usage

taxo_name(taxon_ids, taxo, unique = FALSE)

Arguments

taxon_ids

internal, numeric ids of the taxa.

taxo

a taxonomy data.frame, typically from extract_taxo().

unique

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

Value

A vector names, one for each element of taxon_ids.

See Also

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

Examples

print(as.Node(taxo), "id")
taxo_name(5, taxo)
taxo_name(2:7, taxo)
taxo_name(2:7, taxo, unique=TRUE)

jiho/ecotaxar documentation built on Jan. 16, 2024, 12:26 a.m.