combine | R Documentation |
Combine multiple objects
combine(x, y, ...)
## S4 method for signature 'SummarizedExperiment,SummarizedExperiment'
combine(x, y)
x |
Object. |
y |
Object. |
... |
Additional arguments. |
We're attempting to make this as strict as possible, requiring:
Rows (genes) across objects must be identical.
rowRanges and/or rowData metadata must be identical.
colData must contain the same columns.
Specific metadata must be identical (see metadata
argument).
A single value of the same class as the input values.
Updated 2022-05-23.
help("merge.Matrix", "Matrix.utils")
.
data(RangedSummarizedExperiment, package = "AcidTest")
## SummarizedExperiment ====
x <- RangedSummarizedExperiment
colnames(x) <- paste0(
"sample",
sprintf("%02d", seq_len(ncol(x)))
)
y <- x
colnames(y) <- paste0(
"sample",
sprintf("%02d", seq(from = ncol(y) + 1L, to = ncol(y) * 2L))
)
## Combine the two objects.
c <- combine(x, y)
sampleData(c)
print(c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.