Ncherries: Ncherries

Description Usage Arguments Value References Examples

Description

This calculates the number of cherries in a phylogenetic tree, where a cherry represents two tips that share a direct ancestor.

Usage

1
Ncherries(tree)

Arguments

tree

A tree of class phylo or treeshape.

Value

An object of class numeric.

References

McKenzie A, Steel M (2000) Distributions of cherries for two models of trees. Math Biosci 164: 81-92.

Examples

1
2
3
N=30
tree<-rtreeshape(1,tip.number=N,model="pda")[[1]]
Ncherries(tree)

bdearlove/treeImbalance documentation built on May 12, 2019, 3:39 a.m.