Learn R Programming

pmc (version 0.0-8)

convert: toggles between ouch and ape format trees

Description

toggles between ouch and ape format trees

Usage

convert(ot, regimes = NULL, safe = TRUE)

Arguments

ot
a phylogenetic tree in ouch or ape format
regimes
if given in ape format, are appended to phylo format as phy$regimes. If the ouchtree is a fitted hansen object, regimes will automatically be imported from it unless other regime choice is given here.
safe
mode for going from ape to ouch. After converting, this writes to a temporary nexus file and reads the tree back in, because phylo format does not have a unique specification for a unique tree, resulting in all kinds of silly problems when develo

Value

  • a phylogenetic tree in the opposite format