utilities {diversitree} | R Documentation |
These are utility functions that are used internally by diversitree, but which might be more generally useful.
Currently only get.descendants
docuemnted here, which
determines which species or nodes are descended from a particular
node.
get.descendants(node, tree, tips.only=FALSE, edge.index=FALSE)
node |
A node, either a name in |
tree |
A phylogenetic tree, in ape's |
tips.only |
Logical: return only descendant indices of tip species? |
edge.index |
Logical: return the row indices in the edge matrix? |
Richard G. FitzJohn