Learn R Programming

phytools (version 1.5-1)

collapse.to.star: Collapse a subtree to a star phylogeny

Description

Collapses a subtree to a star.

Usage

collapse.to.star(tree, node)

Value

An object of class "phylo".

Arguments

tree

an object of class "phylo".

node

node for the clade to be collapsed.

Author

Liam Revell liam.revell@umb.edu

Details

If the tree has edge lengths, the function will keep the tips at the same height above the root as in the original tree.

If node is the global root of the tree a star phylogeny will be created.

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

splitTree, starTree