Learn R Programming

RNeXML (version 2.4.11)

c,nexml-method: Concatenate nexml files

Description

Concatenate nexml files

Usage

# S4 method for nexml
c(x, ..., recursive = FALSE)

Value

a concatenated nexml file

Arguments

x, ...

nexml objects to be concatenated, e.g. from write.nexml or read.nexml. Must have unique ids on all elements

recursive

logical. If 'recursive = TRUE', the function recursively descends through lists (and pairlists) combining all their elements into a vector. (Not implemented).

Examples

Run this code
if (FALSE) {
f1 <- system.file("examples", "trees.xml", package="RNeXML")
f2 <- system.file("examples", "comp_analysis.xml", package="RNeXML")
nex1 <- read.nexml(f1)
nex2 <- read.nexml(f2)
nex <- c(nex1, nex2)
}

Run the code above in your browser using DataLab