powered by
The function listDD lists the direct descendants from each node of a tree. The tree can be of class phylo, phylo4 or phylo4d.
listDD
phylo
listDD(x, nameBy = c("label", "number"))
A list whose components are vectors of named nodes (or tips) for a given internal node.
A tree of class phylo, phylo4 or phylo4d.
a character string indicating whether the returned list must be named by node labels ("label") or by node numbers ("number").
Thibaut Jombart tjombart@imperial.ac.uk
listTips which lists the tips descending from each node.
listTips
treePart which defines partitions of tips according to the tree topology.
treePart
if(require(ape) & require(phylobase)){ ## make a tree x <- as(rtree(20),"phylo4") plot(x,show.node=TRUE) listDD(x) }
Run the code above in your browser using DataLab