make_gazer: Prepare data for pre-processing in Gazer

View source: R/make_gazer.R

make_gazerR Documentation

Prepare data for pre-processing in Gazer

Description

This will make sure your data is in the right format for processing. This package is designed to deal with data at it comes out of the eyetracker in a long-form csv style format. Thus data input here would be a long dataframe, wherein each row is a single frame collected by the eyetracker.

Usage

make_gazer(data, subject = "subject", trial = "subject",
  time = "time", x = "x", y = "y", pupil = NULL)

Arguments

data

a raw, long form dataframe organised by subject, trial, and time.

subject

column name indicating subject ID

trial

column name indicating trial ID. This should be unique for participants

time

column name indicating time column (should be numeric)

x

gaze x coordinates

y

gaze y coordinates

pupil

name of pupil colum

Value

A dataframe ready to use in gazer


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