combine-SimpleList-SimpleList-method: Combining SimpleList objects

Description Usage Arguments Details Value Author(s) Examples

Description

Combine multiple SimpleList objects using a union strategy.

Usage

1
2
## S4 method for signature 'SimpleList,SimpleList'
combine(x, y, ...)

Arguments

x

A SimpleList object.

y

A SimpleList object.

...

One or more SimpleList objects.

Details

Objects are combined element-wise (i.e. using mendoapply) based on the names of x, y, and .... This means that x, y, and all elements of ... must be SimpleList objects with the same length and identical names, and that all elements of each SimpleList must themselves have well-defined combine methods.

Value

A SimpleList object.

Author(s)

Peter Hickey, peter.hickey@gmail.com

Examples

1
2
3
4
5
6
7
x <- SimpleList(a = DataFrame(A = 1:5, row.names = LETTERS[1:5]),
                b = matrix(1:4, ncol = 2, byrow = TRUE,
                           dimnames = list(letters[1:2], LETTERS[1:2])))
y <- SimpleList(a = DataFrame(A = 3:7, row.names = LETTERS[3:7]),
                b = matrix(1:8, ncol = 2, byrow = TRUE,
                           dimnames = list(letters[1:4], LETTERS[1:2])))
combine(x, y)

PeteHaitch/SparseSummarizedExperiment documentation built on May 8, 2019, 1:31 a.m.