Learn R Programming

metacoder (version 0.3.7)

id_classifications: Get ID classifications of taxa

Description

Get classification strings of taxa in an object of type [taxonomy()] or [taxmap()] composed of taxon IDs. Each classification is constructed by concatenating the taxon ids of the given taxon and its supertaxa.


obj$id_classifications(sep = ";")
id_classifications(obj, sep = ";")

Value

`character`

Arguments

obj

([taxonomy()] or [taxmap()])

sep

(`character` of length 1) The character(s) to place between taxon IDs

See Also

Other taxonomy data functions: classifications(), is_branch(), is_internode(), is_leaf(), is_root(), is_stem(), map_data(), map_data_(), n_leaves(), n_leaves_1(), n_subtaxa(), n_subtaxa_1(), n_supertaxa(), n_supertaxa_1(), taxon_ids(), taxon_indexes(), taxon_names(), taxon_ranks()

Examples

Run this code
# Get classifications of IDs for each taxon
id_classifications(ex_taxmap)

# Use a different seperator
id_classifications(ex_taxmap, sep = '|')

Run the code above in your browser using DataLab