Creates a new assay with NA values handled according to the specified method.
References
Oostenveld R, Fries P, Maris E, Schoffelen JM (2011). "FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data." Computational Intelligence and Neuroscience, 2011, 156869.
Examples
pe <- PhysioExperiment(
assays = list(raw = matrix(c(1, NA, 3, NA, 5, 6), nrow = 3)),
samplingRate = 100
)
# Interpolate NA values
pe <- replaceNA(pe, method = "interpolate")