Return the "branch" taxa for a
taxmap() object. A branch is
anything that is not a root, stem, or leaf. Its the interior of the tree
after the first split starting from the roots. Can also be used to get the
branches of a subset of taxa.
obj$branches(subset = NULL, value = "taxon_indexes") branches(obj, subset = NULL, value = "taxon_indexes")
Taxon IDs, TRUE/FALSE vector, or taxon indexes used to subset
the tree prior to determining branches. Default: All taxa in
What data to return. This is usually the name of column in a
# Return indexes of branch taxa branches(ex_taxmap)#> d e f h i j k l #> 3 4 5 7 8 9 10 11# Return indexes for a subset of taxa branches(ex_taxmap, subset = 2:17)#> g h k #> 6 7 10branches(ex_taxmap, subset = n_obs > 1)#> named integer(0)# Return something besides taxon indexes branches(ex_taxmap, value = "taxon_names")#> d e f h i #> "Felidae" "Notoryctidae" "Hominidae" "Panthera" "Felis" #> j k l #> "Notoryctes" "homo" "Solanum"