erplist.resample {erpR} | R Documentation |
This function resample all the data of several ERP data frames, stored in a erplist
. It relies on the signal
package.
erplist.resample(base=NULL, numbers=NULL, erplist=NULL, outname=paste(base, "_res", sep=""), sr.factor=c(1,2))
base |
a string indicating the beginning of the name of |
numbers |
the numbers of the subjects to be averaged by the function. |
erplist |
a list containing the ERP data frames specified in |
outname |
the |
sr.factor |
A vector of two values, determining the ratio of the resulting resampling. For example the default |
The function takes an erplist
containing ERP data.frame
as input, in the style of erpR
and use the resample
function from the signal
pacakge to perform resampling.
A new erplist with the data resampled.
This function rely on the resample
function from signal
package. Note that you have to install separately the signal
package.
Giorgio Arcara
## Not run: data(ERPsets) erplist_res=erplist.resample(base="Exp1_word_subj", numbers=1:20, erplist=ERPsets, sr.factor=c(1,2)) # original data were sampled at 500 Hz, data in erplist_res are sampled at 250 Hz. ## End(Not run)