eye_preprocess <- function(eeg, bsln_start, bsln_end)
{
t <- dim(eeg)[1];
# baseline mean subtraction
mean_baseline <- colMeans(eeg[bsln_start:bsln_end, ])
e1 <- t(apply(eeg, 1, function(x) x - mean_baseline))
return(e1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.