erp.peak applies the function mean to 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.peak(base, numbers, win.ini, win.end, erplist = NULL,
startmsec=-200, endmsec=1200, others=NULL, format="long",
name.dep="Dep", name.newvar="electrode", peak.fun = "max", ...)data.frame containing the ERP data.
base and numbers.
max, min, localmax, localmin.
peak.fun.
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).
erpR functions localmax and localmin are are written following Luck (2005).
erp.mean, erp.latency, rearrange, max, min, localmax, localmin
data(ERPsets)
dat=erp.peak(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", peak.fun=max)
Run the code above in your browser using DataLab