Learn R Programming

phytools (version 0.2-40)

roundBranches: Rounds the branch lengths of a tree

Description

This function rounds the branch lengths of a tree and reconciles any mappings (as in read.simmap) with the rounded branch lengths.

Usage

roundBranches(tree, digits)

Arguments

tree
tree.
digits
number of digits for rounding. Passed to round.

Value

  • a tree with branch lengths, or modified "phylo" object with a mapped discrete character.