Skip to contents

Adjust time values around 0

Usage

adjust_times_around_zero(data, time_col = "Time", fps = 60, ties = "first")

Arguments

data

a dataframe of eyetracking data for a single trial or a grouped dataframe where the groups define a single trial.

time_col

name (string) of the column with time value. Defaults to "Time".

fps

the eyetracking sampling rate. Defaults to 60 frames per second.

ties

how to break ties when the smallest times are equally close to zero. Default is "first" so that the tie c(-1, 1) is aligned to c(0, 2).

Value

the dataframe with updated time values