node.leafnumber {ape}R Documentation

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.

Author(s)

Julien Dutheil julien.dutheil@univ-montp2.fr

See Also

node.depth, node.sons


[Package ape version 1.7 Index]