Number of all nodes in a tree

PCMTreeNumNodes(tree)

Arguments

tree

a phylo object

Value

the number of nodes in tree including root, internal and tips.

Details

Wrapper for nrow(tree$edge) + 1