expand.singles: Expand singletons

Description Usage Arguments Details Value Author(s)

Description

This function expands singleton nodes into bifurcating nodes with one zero-length branch. This isn't much and was originally used to convert phylo4 objects with singletons into phylo objects ('ape'). This adds new taxa and assigns them a unique identifiier name.

Usage

1
expand.singles(tree, keep.data=FALSE)

Arguments

tree

A tree with singleton nodes

keep.data

Should a phyl4d (TRUE) or phylo4 (FALSE) object be returned.

Details

This function isn't used much, but might be used to convert phylo4 objects with singletons to phylo objects with zero-length branches. Might be helpful for writing singletons to file (via ape).

Value

A phylo4 object with the singletons converted.

Author(s)

J. Conrad Stack


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