ape (version 1.8-4)

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

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