collapse.subnodes: Collapse subnodes into singletons

Description Usage Arguments Details Value Author(s) See Also

Description

Method which converts any existing subnodes into their phylobase equilvalent, singleton nodes (nodes with an in-degree and out-degree equal to one).

Usage

1
collapse.subnodes(x, rm.ex.data = TRUE)

Arguments

x

An object of type phylo4d_ext which contains subnodse

rm.ex.data

Should data columns that only exist in subnodes.data be removed (TRUE is recommended).

Details

This functions allows a user to convert from RBrownie:::phylo4d_ext objects to phylobase:::phylo4d objects without loosing any of the tree's topological information (or data). This is in contrast to the collapse.singletons function which removes subnodes and returns a phylo4d tree without singletons or subnodes

Value

An object of class phylo4d with singleton nodes where subnodes used to be

Author(s)

J. Conrad Stack

See Also

collapse.singletons, phyext, expand.singles


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