collapse.to.star {phytools} | R Documentation |
Collapse a subtree to a star phylogeny
Description
Collapses a subtree to a star.
Usage
collapse.to.star(tree, node)
Arguments
tree |
an object of class |
node |
node for the clade to be collapsed. |
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.
Value
An object of class "phylo"
.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
See Also
[Package phytools version 2.3-0 Index]