Sets the timing variable relative to the onset of an event. See https://dr-jt.github.io/pupillometry/ for more information.
set_timing(
x,
onset_message = NULL,
match = "exact",
trial_onset.message = NULL,
pretrial.duration = 0,
trialonset.message = NULL,
pre_trial.duration = NULL
)
dataframe.
Message string that marks the start of the event.
Is message string an "exact" match or a "pattern" match?
deprecated. Use onset_message.
deprecated.
deprecated.
deprecated.
Changes the values in the Time column.
Raw eye tracker data will provide timing values in absolute values from the start of recording. More useful, are timing values that are relative to the onset of an event.
This function allows you to set the timing variable relative to the onset of an event in the Stimulus or Message columns with the `onset_message` argument call. For instance, you can set the timing relative to the onset of a fixation or the onset of the first stimulus in the trial. You can use this function on the data as many times as you like.