erp.mean applies the function mean on several ERP data frames with timepoints in rows and electrodes in columns. ERP data frames are expected to be named as a combination of strings specified in base and numbers.
erp.mean(base, numbers, win.ini, win.end, erplist = NULL,
startmsec=-200, endmsec=1200, others=NULL, format="long",
name.dep="Dep", name.newvar="electrode")data.frame containing ERP data.
base and numbers.
data.frame. Ignored if format is "wide".
Subject indicates the subject number; the column Subject_name reports the string retrieved from the comment of the data frame (see Details on import.erp).
erp.peak, erp.latency, rearrange, mean
data(ERPsets)
dat=erp.mean(base="Exp1_word_subj", numbers=1:20,
win.ini=130, win.end=190, erplist=ERPsets, startmsec=-200, endmsec=1500,
others=c(condition="word", interval="130-190"), name.dep="Ampl", format="long")
Run the code above in your browser using DataLab