Learn R Programming

phytools (version 1.2-0)

roundBranches: Rounds the branch lengths of a tree

Description

This function rounds the branch lengths of a tree or trees and reconciles any mappings for objects of class "simmap" or "multiSimmap".

Usage

roundBranches(tree, digits)

Value

An object of class "phylo", "multiPhylo", "simmap", or "multiSimmap", with rounded edge lengths.

Arguments

tree

an object of class "phylo", "multiPhylo", "simmap", or "multiSimmap".

digits

number of digits for rounding. Passed to round.

Author

Liam Revell liam.revell@umb.edu

References

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