Skip to contents

Get or set the experiments list

Usage

experiments(x)

# S4 method for class 'MultiPhysioExperiment'
experiments(x)

experiments(x) <- value

# S4 method for class 'MultiPhysioExperiment'
experiments(x) <- value

Arguments

x

A MultiPhysioExperiment object.

value

A named list of PhysioExperiment objects.

Value

For the getter, a named list of PhysioExperiment objects. For the setter, the modified MultiPhysioExperiment (returned invisibly).

Examples

eeg_data <- matrix(rnorm(500 * 2), nrow = 500, ncol = 2)
pe_eeg <- PhysioExperiment(
  assays = list(raw = eeg_data),
  samplingRate = 250
)
mpe <- MultiPhysioExperiment(EEG = pe_eeg)
experiments(mpe)
#> $EEG
#> class: PhysioExperiment
#> dim: 500 x 2 
#> assays(1): raw
#> samplingRate: 250 Hz
#> channels(2): Ch1, Ch2
#>