erp.latency
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.latency(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 written following Luck (2005).
erp.mean
, erp.peak
, rearrange
, max
, min
, localmax
, localmin
data(ERPsets)
dat=erp.latency(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