collapseSingles: Collapse Singleton Edges

Description Usage Arguments Value See Also

View source: R/collapseSingles.R

Description

Collapse singleton edges in a phylogenetic tree. This function is an alternative for collapse.singleton from the ape package that will also work when ape::reorder(phy) throws an error. (And this tends to happen often when taxonomic relationships are converted to trees.)

Usage

1

Arguments

phy

An object of class "phylo".

Value

An object of class "phylo".

See Also

taxdump2phylo, comprehensiveGuidetree


heibl/megaptera documentation built on Jan. 17, 2021, 3:34 a.m.