sampling.rate {erpR} | R Documentation |
erpobj
The function calculates calculate sampling rate from an erpobj
, that is a data.frame
containing ERP data used with the erpR
package.
sampling.rate(x, startmsec = NULL, endmsec = NULL)
x |
An |
startmsec |
the time (in ms) of the start of the segment |
endmsec |
the time (in ms) of the end of the segment |
This function can be used to calculate the sampling rate of an erpobj
.
The sampling rate.
Giorgio Arcara
# load sample data data(ERPsets) # calculate sampling rate of the first object in the erplist, named ERPsets sampling.rate(ERPsets[[1]], startmsec = -200, endmsec = 1500)