fill_gaze_gaps: Fill in gaps of missing eyetracking data

Description Usage Arguments Details Value

View source: R/fillgaze-package.R

Description

Fill in gaps of missing eyetracking data

Usage

1
2
fill_gaze_gaps(data, ..., time_var = NULL, max_na_rows = NULL,
  max_duration = NULL, max_sd = NULL)

Arguments

data

a dataframe of eyetracking data

...

columns to interpolate selected using dplyr selection semantics

time_var

(optional) the name of a column in data containing the timestamps of eyetracking samples. Defaults to using row numbers.

max_na_rows

(optional) do not fill in gaps larger than max_na_rows rows

max_duration

(optional) do not fill in gaps longer than max_na_rows in duration

max_sd

(optional/experimental) do not fill in gaps where the change from pre-missing to post-missing is more than max_sd * z, where z is the standard deviation of frame-to-frame changes in values in that column.

Details

This function respects groupings created by dplyr::group_by().

Value

the dataframe with interpolated eyetracking data


tjmahr/fillgaze documentation built on Aug. 11, 2017, 9:24 p.m.