msectopoints: convert points in milliseconds

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/msectopoints.R

Description

An internal function of erpR to convert milliseconds in points.

Usage

1
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

Details

This is mostly an internal function of erpR.

Value

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

Author(s)

Giorgio Arcara

See Also

pointstomsec

Examples

1
2
3
4
# 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)


erpR documentation built on May 21, 2017, 4:06 a.m.
Search within the erpR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.