roundBranches: Rounds the branch lengths of a tree

View source: R/utilities.R

roundBranchesR Documentation

Rounds the branch lengths of a tree

Description

Rounds the branch lengths of a phylogenetic tree.

Usage

roundBranches(tree, digits)

Arguments

tree

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

digits

number of digits for rounding. Passed to round.

Details

This function rounds the branch lengths of a tree or trees to a precision indicated by digits, and reconciles any mappings for objects of class "simmap" or "multiSimmap".

Value

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

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.


phytools documentation built on June 22, 2024, 10:39 a.m.