Description Usage Arguments Details Value Author(s) Examples
Combine multiple SimpleList objects using a union strategy.
1 2 | ## S4 method for signature 'SimpleList,SimpleList'
combine(x, y, ...)
|
x |
A SimpleList object. |
y |
A SimpleList object. |
... |
One or more SimpleList objects. |
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.
A SimpleList object.
Peter Hickey, peter.hickey@gmail.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.