collapse.to.singles: Collapse zero-length branches

Description Usage Arguments Details Value Author(s)

Description

This function is not being used at this point, but works. Sister function of expand.singles -> converts internal nodes with zero-length branches into singletons (in phylo4 format). Will only work if the zero-len branch is connected to a tip.

Usage

1
collapse.to.singles(tree, by.name = NULL)

Arguments

tree

Phylo4 object

by.name

If this is set then tip labels are searched for this pattern and those nodes are collapsed. (see tipLabels function in phylobase).

Details

Not currently being used.

Value

A new phylogenetic tree which contains singleton nodes (possibly)

Author(s)

J. Conrad Stack


phyext documentation built on May 2, 2019, 5:19 p.m.