Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

collapse.to.star

Collapse a subtree to a star phylogeny


Description

This function collapses a subtree to a star. 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.

Usage

collapse.to.star(tree, node)

Arguments

tree

an object of class "phylo".

node

node for the clade to be collapsed.

Value

An object of class "phylo".

Author(s)

References

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

See Also


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.