Learn R Programming

erpR (version 0.2.0)

msectopoints: convert points in milliseconds

Description

An internal function of erpR to convert milliseconds in points.

Usage

msectopoints(a, lengthsegment, startmsec, endmsec)

Arguments

a
a number indicating the ms to be converted in points
lengthsegment
the length (in points) of the segment
startmsec
the time (in ms) of the start of the segment
endmsec
the time (in ms) of the end of the segment

Value

The function returns a single value that is the conversion of a from msec to points.

Details

This is mostly an internal function of erpR.

See Also

pointstomsec

Examples

Run this code
# convert 400 ms to points in a segment of 500 points starting from -200 ms 
# and ending at 1500 (500 Hz).

msectopoints(120, 500, startmsec=-500, endmsec=1500)

Run the code above in your browser using DataLab