Return the taxon names in a taxonomy()
or taxmap()
object.
They are in the order they appear in the edge list.
obj$taxon_names() taxon_names(obj)
obj | The |
---|
Other taxonomy data functions:
classifications()
,
id_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_ranks()
# Return the names for each taxon taxon_names(ex_taxmap)#> b c d e f #> "Mammalia" "Plantae" "Felidae" "Notoryctidae" "Hominidae" #> g h i j k #> "Solanaceae" "Panthera" "Felis" "Notoryctes" "homo" #> l m n o p #> "Solanum" "tigris" "catus" "typhlops" "sapiens" #> q r #> "lycopersicum" "tuberosum"#> <Taxmap> #> 5 taxa: d. Felidae, h. Panthera, i. Felis, m. tigris, n. catus #> 5 edges: NA->d, d->h, d->i, h->m, i->n #> 4 data sets: #> info: #> # A tibble: 2 x 4 #> taxon_id name n_legs dangerous #> <chr> <chr> <dbl> <lgl> #> 1 m tiger 4 TRUE #> 2 n cat 4 FALSE #> phylopic_ids: a named vector of 'character' with 2 items #> m. e148eabb-f138-43[truncated] ... n. 12899ba0-9923-4f[truncated] #> foods: a list of 2 items named by taxa: #> m, n #> abund: #> # A tibble: 4 x 5 #> taxon_id code sample_id count taxon_index #> <chr> <fct> <fct> <dbl> <int> #> 1 m T A 1 1 #> 2 n C A 2 2 #> 3 m T A 6 1 #> # … with 1 more row #> 1 functions: #> reaction