Learn R Programming

RNeXML (version 2.4.11)

get_trees: extract a phylogenetic tree from the nexml

Description

extract a phylogenetic tree from the nexml

Usage

get_trees(nexml)

Value

an ape::phylo tree, if only one tree is represented. Otherwise returns a list of lists of multiphylo trees. To consistently receive the list of lists format (preserving the hierarchical nature of the nexml), use get_trees_list instead.

Arguments

nexml

a representation of the nexml object from which the data is to be retrieved

See Also

get_trees get_flat_trees get_item

Examples

Run this code
comp_analysis <- system.file("examples", "comp_analysis.xml", package="RNeXML")
nex <- nexml_read(comp_analysis)
get_trees(nex)

Run the code above in your browser using DataLab