erplist.extract: Extract data from an erplist.

Description Usage Arguments Details Value Author(s) Examples

Description

This functions extract data from an erplist selecting a subsample of timepoints (i.e., a smaller time window than the original one)

Usage

1
2
erplist.extract(bases, numbers, win.ini=NULL, win.end=NULL, point.ini=NULL, 
point.end=NULL, erplist=NULL, startmsec=NULL, endmsec=NULL)

Arguments

bases

a vector of chars indicating the beginning of the names of data.frame containing ERP data. You can specify more than one base.

numbers

the numbers of the subjects to be averaged by the function.

win.ini

the initial edge (in ms) of the window of the timepoints to extract.

win.end

the final edge (in ms) of the window of the timepoints to extract.

point.ini

the initial point of the timepoints to extract (overridded in win.ini or win.end are specified).

point.end

the final point of the timepoints to extract (overridded in win.ini or win.end are specified).

erplist

a list containing the ERP data frames specified in base and numbers.

startmsec

the start time (in ms) of the ERP vector

endmsec

the end time (in ms) of the ERP vector

Details

The function creates a new eplists, with smaller objects then the original. The initial and final timepoints of the new objects are specified (in ms) with win.ini and win.end

Value

A new erplist with the extracted data.

Author(s)

Giorgio Arcara

Examples

1
2
3
4
5
6
data(erplistExample)

erplist_ext=erplist.extract(base="Exp1_word_subj", numbers=1:20, 
win.ini=-100, win.end=1200, erplist=erplistExample)

# The new erplist now have data that starts from -100 to 1200 ms

erpR documentation built on June 7, 2019, 3 a.m.