Skip to content

Fill Gaps

Sebastian Kapp edited this page Feb 25, 2021 · 1 revision

gap_fill R Documentation


Fill Gaps

Description

This function fills gaps in the eye tracking data by inserting a linear interpolation between the last valid sample before the gap and the first valid sample after the gap.

Usage

gap_fill(data, max_gap_length = 75)

Arguments


data Data frame of the eye tracking data we want to process max_gap_length Maximum gap length in ms which we want to fill


Format

Input data frame columns

gazeHasValue

: Boolean if there is valid gaze data

eyeDataRelativeTimestamp

: Timestamp of the data

gazeorigin_x

: X coordinates of the gaze origin

gazeorigin_y

: Y coordinates of the gaze origin

gazeorigin_z

: Z coordinates of the gaze origin

gazeDirection_x

: X coordinates of the gaze direction

gazeDirection_y

: Y coordinates of the gaze direction

gazeDirection_z

: Z coordinates of the gaze direction

gazePoint_x

: X coordinates of the gaze point

gazePoint_y

: Y coordinates of the gaze point

gazePoint_z

: Z coordinates of the gaze point

Value

The modified input data frame with the gaps filled and an additional column modified which indicates if the line was modified