Skip to contents

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