Learn R Programming

RNeXML (version 2.0.7)

simmap_to_nexml: simmap_to_nexml

Description

simmap_to_nexml

Usage

simmap_to_nexml(phy, state_ids = NULL)

Arguments

phy

a phy object containing simmap phy$maps element, from the phytools pacakge

state_ids

a named character vector giving the state names corresponding to the ids used to refer to each state in nexml. If null ids will be generated and states taken from the phy$states names.

Value

a nexml representation of the simmap

Examples

Run this code
# NOT RUN {
data(simmap_ex)
phy <- nexml_to_simmap(simmap_ex)
nex <- simmap_to_nexml(phy) 
# }

Run the code above in your browser using DataLab