Returns a character vector of the names of the modalities stored in the object.
Examples
eeg_data <- matrix(rnorm(500 * 2), nrow = 500, ncol = 2)
emg_data <- matrix(rnorm(1000 * 2), nrow = 1000, ncol = 2)
pe_eeg <- PhysioExperiment(
assays = list(raw = eeg_data),
samplingRate = 250
)
pe_emg <- PhysioExperiment(
assays = list(raw = emg_data),
samplingRate = 1000
)
mpe <- MultiPhysioExperiment(EEG = pe_eeg, EMG = pe_emg)
modalities(mpe)
#> [1] "EEG" "EMG"