powered by
The generics ape::Nedge(), ape::Nnode(), and ape::Ntip() can be used directly on objects of class aphylo, aphylo_estimates, multiAphylo
ape::Nedge()
ape::Nnode()
ape::Ntip()
Integer with the number of edges, nodes, or tips accordignly.
Other information: aphylo-info
aphylo-info
set.seed(12312) atree <- raphylo(50, P = 2) Nnode(atree) Ntip(atree) Nedge(atree) multitree <- rmultiAphylo(10, 50, P = 2) Nnode(multitree) Ntip(multitree) Nedge(multitree)
Run the code above in your browser using DataLab