Skip to contents

number of nodes

Usage

# S3 method for treedata
Nnode(phy, internal.only = TRUE, ...)

Arguments

phy

treedata object

internal.only

whether only count internal nodes

...

additional parameters

Value

number of nodes

Author

Guangchuang Yu

Examples

Nnode(rtree(30))
#> [1] 29