R/processing_movement_functions.R
resample_eyetracker.Rd
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)
An eye tracker data frame. Expected column: 'time'
New time index, with respect to "from"
A numerical value of the starting time for resampling (default 0)
A numerical value of the end time for resampling (default inf, i.e. end of the data frame)
A resampled eyetracker data frame