binify_fixations: Convert fixation list into time bins

View source: R/binify_fixations.R

binify_fixationsR Documentation

Convert fixation list into time bins

Description

Takes a data frame list of fixations and returns a time series with the fixations expanded into time bins of specified duration.

Usage

binify_fixations(gaze, binSize = 20, keepCols = c("Subject",
  "TrialNumber", "Target", "T"), maxTime = NULL)

Arguments

gaze

a data frame of fixations, as returned by readFixationReport

binSize

length of bins, in ms

keepCols

set of columns to keep, fixation start and end times will be dropped

maxTime

optional parameter to set maximum trial length

Value

data frame containing gaze data arranged by bin


dmirman/gazer documentation built on Aug. 1, 2022, 2:02 p.m.