sampling.rate: calculate sampling rate from an 'erpobj'

Description Usage Arguments Details Value Author(s) Examples

Description

The function calculates calculate sampling rate from an erpobj, that is a data.frame containing ERP data used with the erpR package.

Usage

1
sampling.rate(x, startmsec = NULL, endmsec = NULL)

Arguments

x

An erpobj, that is a data.frame containing ERP data used with the erpR package.

startmsec

the time (in ms) of the start of the segment

endmsec

the time (in ms) of the end of the segment

Details

This function can be used to calculate the sampling rate of an erpobj.

Value

The sampling rate.

Author(s)

Giorgio Arcara

Examples

1
2
3
4
5
# load sample data
data(erplistExample)

# calculate sampling rate of the first object in the erplist, named erplistExample
sampling.rate(erplistExample[[1]], startmsec = -200, endmsec = 1500)

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