Computes the difference waveform between two PhysioExperiment objects by
subtracting the assay data of y from x.
Value
Modified x with difference waveform stored in
output_assay. The difference assay has the same dimensions as
the input assay.
References
Luck, S. J. (2014). An Introduction to the Event-Related Potential Technique (2nd ed.). MIT Press.
Examples
if (FALSE) { # \dontrun{
pe1 <- make_eeg_erp(n_epochs = 20, sr = 250)
pe2 <- make_eeg_erp(n_epochs = 20, sr = 250)
result <- eegERPdifference(pe1, pe2)
} # }