This method combines AnyHermesData
objects with the same ranges but different
samples (columns in assays).
(AnyHermesData
)
objects to column bind.
The combined AnyHermesData
object.
Note that this just inherits
SummarizedExperiment::cbind,SummarizedExperiment-method()
. When binding a
AnyHermesData
object with a SummarizedExperiment::SummarizedExperiment
object, then the result will be a
SummarizedExperiment::SummarizedExperiment
object (the more general
class).
Note that the combined object needs to have unique sample IDs (column names).
rbind
to row bind objects.
a <- hermes_data[, 1:10]
b <- hermes_data[, 11:20]
result <- cbind(a, b)
class(result)
#> [1] "HermesData"
#> attr(,"package")
#> [1] "hermes"