Learn R Programming

RNeXML (version 2.4.11)

c,meta-method: Concatenate meta elements into a ListOfmeta

Description

Concatenate meta elements into a ListOfmeta

Concatenate ListOfmeta elements into a flat ListOfmeta

Usage

# S4 method for meta
c(x, ..., recursive = TRUE)

# S4 method for ListOfmeta c(x, ..., recursive = TRUE)

Value

a ListOfmeta object containing a flat list of meta elements.

Arguments

x, ...

meta and ListOfmeta elements to be concatenated, see meta

recursive

logical, if 'recursive=TRUE', the function recursively descends through lists and combines their elements into a flat vector. This method does not support recursive=FALSE, use list instead.

Examples

Run this code
c(meta(content="example", property="dc:title"),
  meta(content="Carl", property="dc:creator"))
metalist <- c(meta(content="example", property="dc:title"),
              meta(content="Carl", property="dc:creator"))
out <- c(metalist, metalist) 
out <- c(metalist, meta(content="a", property="b")) 

Run the code above in your browser using DataLab