taxa (version 0.3.3)

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 = ";")

Arguments

sep

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

Value

character

See Also

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

Examples

Run this code
# NOT RUN {
# 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 DataCamp Workspace