Learn R Programming

phytools (version 0.4-45)

di2multi.simmap: Collapse branches of zero length to polytomy in stochastic map style tree

Description

This function collapses branches of zero length (or, more specifically, branches with length shorter than tol) to create a polytomy in a stochastic-map style tree.

Usage

di2multi.simmap(tree, tol=1e-08)

Arguments

tree
modified object of class "phylo" containing a stochastically mapped discrete character.
tol
length below which edges should be treated as having zero length.

Value

  • A tree with a stochastically mapped discrete character

Details

This function should theoretically perform similarly to di2multi in ape.

References

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

See Also

di2multi, make.simmap, read.simmap