getSubTaxa {dowser} | R Documentation |
getSubTaxa
Gets the tip labels from a clade
getSubTaxa(node, tree)
node |
node number that defines the target clade |
tree |
|
A vector containing tip labels of the clade
# Get taxa from all subtrees
data(BiopsyTrees)
tree <- BiopsyTrees$trees[[8]]
all_subtrees <- lapply(1:length(tree$nodes), function(x)getSubTaxa(x, tree))