ape: Convert Between Forest and Ape Trees

Description Usage Arguments Details

Description

Converts between ape trees (objects of class phylo) and forest trees (currently xtree objects composed of xnodes.

Usage

1
2
3

Arguments

phy

A tree in ape's "phylo" class.

tree

A tree from forest

Details

These functions are lossy: converting from ape to forest and back may not preserve edge index numbers, though it will preseve names (and topology, etc). Converting from forest to ape will lose all data associated with the tree (that is, the data field associated with each node), and only the labels give a route to re-associating. Both these may change in future.


richfitz/forest documentation built on May 27, 2019, 8:17 a.m.