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

obj

(taxonomy() or taxmap())

sep

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

Value

character

See also

Examples

# Get classifications of IDs for each taxon id_classifications(ex_taxmap)
#> b c d e f g h i #> "b" "c" "b;d" "b;e" "b;f" "c;g" "b;d;h" "b;d;i" #> j k l m n o p q #> "b;e;j" "b;f;k" "c;g;l" "b;d;h;m" "b;d;i;n" "b;e;j;o" "b;f;k;p" "c;g;l;q" #> r #> "c;g;l;r"
# Use a different seperator id_classifications(ex_taxmap, sep = '|')
#> b c d e f g h i #> "b" "c" "b|d" "b|e" "b|f" "c|g" "b|d|h" "b|d|i" #> j k l m n o p q #> "b|e|j" "b|f|k" "c|g|l" "b|d|h|m" "b|d|i|n" "b|e|j|o" "b|f|k|p" "c|g|l|q" #> r #> "c|g|l|r"