Description Usage Arguments Value Note Author(s) Examples
A function to average ERP objects, i.e. data frames with timepoints in rows, electrodes in columns and amplitude values in each cell. It is used to compute the grandaverage across several subjects, for plotting purposes.
1 2 |
base |
a string indicating the beginning of the name of the |
numbers |
the numbers of subjects to be averaged. |
electrodes |
a character vector indicating the electrodes on which perform the grandaverage. Default is |
startmsec |
the start time (in ms) of the |
endmsec |
the end time (in ms) of the |
erplist |
a list containing ERP data frames. |
NA.sub |
logical. If |
A data frame with the values of subjects specified by the combination of base
and numbers
.
The function keeps track of the averaged objects in a comment
.
Giorgio Arcara
1 2 3 4 5 | data(erplistExample)
# compute the average of subjects 1 to 20 for the condition
# specified by the string "Exp1_word_subj".
word=grandaverage("Exp1_word_subj", 1:20, erplist=erplistExample)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.