onset_pupil | R Documentation |
Centers the sample index or time stamp of your time series to a reference marker, such that 0 always coincides with the onset of a particular event.
onset_pupil(time, marker, event)
time |
Numeric vector of sample indices or time stamps corresponding to a single time series. |
marker |
Vector containing markers of trial events. |
event |
Label in |
Numeric vector that zeroes time
to the trial onset. In the
event that no onset marker is found, a warning is issued and a vector of
NA
s is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.