node.leafnumber {ape} | R Documentation |
Compute the number of leaves of a subtree defined by a particular node.
node.leafnumber(phy, node)
phy |
An object of class phylo representing the tree to parse. |
node |
A string giving the node index. |
The number of leaves of the subtree defined by node
.
If node
is a leaf or node a valid node name, 0 is returned.
Julien Dutheil julien.dutheil@univ-montp2.fr