roundBranches {phytools} | R Documentation |
This function rounds the branch lengths of a tree or trees and reconciles any mappings (as in read.simmap
) with the rounded branch lengths.
roundBranches(tree, digits)
tree |
an object of class |
digits |
number of digits for rounding. Passed to |
A tree with branch lengths, or modified "phylo"
or "multiPhylo"
object with a mapped discrete character.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.