Horizontally concatenates the channels (columns) of two
PhysioExperiment objects that share the same sampling rate.
Channel labels are prefixed to avoid name collisions.
Usage
mergePhysio(x, y, prefix = c("x_", "y_"))Details
Both objects must have the same number of time points (rows) and the same sampling rate. Only the first assay of each object is merged.
Examples
pe1 <- PhysioExperiment(
assays = list(raw = matrix(rnorm(100 * 4), nrow = 100)),
colData = S4Vectors::DataFrame(label = paste0("A", 1:4)),
samplingRate = 500
)
pe2 <- PhysioExperiment(
assays = list(raw = matrix(rnorm(100 * 4), nrow = 100)),
colData = S4Vectors::DataFrame(label = paste0("B", 1:4)),
samplingRate = 500
)
merged <- mergePhysio(pe1, pe2)