RNeXML (version 2.4.0)

nexml_add: add elements to a new or existing nexml object

Description

add elements to a new or existing nexml object

Usage

nexml_add(x, nexml = new("nexml"), type = c("trees", "characters",
  "meta", "namespaces"), ...)

Arguments

x

the object to be added

nexml

an existing nexml object onto which the object should be appended

type

the type of object being provided.

...

additional optional arguments to the add functions

Value

a nexml object with the additional data

See Also

add_trees add_characters add_meta add_namespaces

Examples

Run this code
# NOT RUN {
library("geiger")
data(geospiza)
geiger_nex <- nexml_add(geospiza$phy, type="trees")
geiger_nex <- nexml_add(geospiza$dat, nexml = geiger_nex, type="characters")
# }

Run the code above in your browser using DataLab