sampling.rate {erpR}R Documentation

calculate sampling rate from an erpobj

Description

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

Usage

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


# 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)


[Package erpR version 0.4.1 Index]