Rdocumentation
powered by
Learn R Programming
ape (version 1.8-5)
node.depth: Depth of Nodes and Tips
Description
This function returns the depth of nodes and tips given by the number of descendants (1 is returned for tips).
Usage
node.depth(x)
Arguments
x
the matrix `edge' of an object of class "phylo".
Value
A numeric vector with `names' being the ``numbers'' of the matrix `edge'.
Details
The depth of a node is computed as the number of tips which are its descendants. The value of 1 is given to the tips.
See Also
plot.phylo