metacoder (version 0.1.2)

hierarchies: Get classification of taxa

Description

Get classification strings of taxa in an object of type taxmap. Each classification is constructed by concatenating the taxon ids of the given taxon and its supertaxa.

Usage

hierarchies(obj, subset = 1:nrow(obj$taxon_data), sep = ";")

Arguments

obj
subset
(character) The taxon_idss or indexes in taxon_data to get classifications for.
sep
(character of length 1) The character(s) to place between taxon IDs

Value

character of length equal to subset

See Also

Other taxon_funcs: n_obs_1, n_obs, n_subtaxa_1, n_subtaxa, n_supertaxa