Takes an eyetracker data frame, identifies eligible columns, removes value outside range (from, to), and resamples to new index, where 0 in the new index corresponds to "from". For use with 'summarise'. Works on all generated columns that start with `fixation`, and on all raw columns known to contain numerical data

resample_eyetracker(df, new_time, from = 0, to = Inf)

Arguments

df

An eye tracker data frame. Expected column: 'time'

new_time

New time index, with respect to "from"

from

A numerical value of the starting time for resampling (default 0)

to

A numerical value of the end time for resampling (default inf, i.e. end of the data frame)

Value

A resampled eyetracker data frame