Rdocumentation
powered by
Learn R Programming
ape (version 1.8-5)
node.leafnumber: Get the Number of Leaves for a Node
Description
Compute the number of leaves of a subtree defined by a particular node.
Usage
node.leafnumber(phy, node)
Arguments
phy
An object of class
phylo
representing the tree to parse.
node
A string giving the node index.
Value
The number of leaves of the subtree defined by
node
. If
node
is a leaf or node a valid node name, 0 is returned.
See Also
node.depth
,
node.sons