add elements to a new or existing nexml object
nexml_add(x, nexml = new("nexml"), type = c("trees", "characters", "meta", "namespaces"), ...)
the object to be added
an existing nexml object onto which the object should be appended
the type of object being provided.
additional optional arguments to the add functions
a nexml object with the additional data
add_trees add_characters add_meta add_namespaces
add_trees
add_characters
add_meta
add_namespaces
# 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