polyBalance: Balance of a phylogenetic tree with polytomies

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function computes the numbers of descendants for each dichotomous branch of a phylogenetic tree.

Usage

1

Arguments

phy

A tree of class ‘phylo’.

Details

The function extends balance to allow the balance of a tree with polytomies to be calculated. When the tree is fully dichotomous, the result is identical to balance.

Value

A numeric matrix with two columns and one row for each node of the tree. The columns give the numbers of descendants on each node. Non-dichotomous nodes are reported as 'NA'.

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

See Also

balance.

Examples

1
2
3
4
5
	set.seed(55)
	tr <- rtree(15)
	tr2 <- di2multi(tr, tol=0.02)
	polyBalance(tr)
	polyBalance(tr2)

spider documentation built on May 2, 2019, 5:16 p.m.