multi2di {ape} | R Documentation |
These two functions collapse or resolve multichotomies in phylogenetic
trees (objects of class "phylo"
).
multi2di(phy) di2multi(phy, tol = 1e-08)
phy |
an object of class "phylo" . |
tol |
a numeric value giving the tolerance to consider a branch length significantly greater than zero. |
multi2di
transforms all multichotomies into a series of
dichotomies with one (or several) branch(es) of length zero.
di2multi
deletes all branches smaller than tol
and
collapses the corresponding dichotomies into a multichotomy.
Both functions return an object of class "phylo"
.
Emmanuel Paradis paradis@isem.univ-montp2.fr
data(bird.families) is.binary.tree(bird.families) is.binary.tree(multi2di(bird.families)) all.equal(di2multi(multi2di(bird.families)), bird.families)