inst/doc/importing-and-harmonizing.R

## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>", eval = FALSE)

## -----------------------------------------------------------------------------
# detect_eye_format("participant-01.tsv")
# x <- read_eye_export("participant-01.tsv", vendor = "auto")

## -----------------------------------------------------------------------------
# mapping <- eye_mapping(
#   participant = "subject",
#   recording = "recording",
#   timestamp = "timestamp_us",
#   x = "gaze_x",
#   y = "gaze_y",
#   pupil_left = "pupil_left_mm",
#   pupil_right = "pupil_right_mm",
#   trial = "trial_id",
#   item = "item_id",
#   response = "answer",
#   score = "correct",
#   response_time = "response_time_ms"
# )
# 
# x <- read_eye_generic(
#   "export.csv",
#   mapping = mapping,
#   time_unit = "microseconds",
#   coordinate_space = "display_pixels_top_left",
#   screen_width = 1920,
#   screen_height = 1080,
#   pupil_unit = "millimetres"
# )

## -----------------------------------------------------------------------------
# tobii   <- read_tobii("tobii-pro-lab.tsv")
# neon    <- read_pupil_neon("neon-export-folder")
# core    <- read_pupil_core("pupil-player-export")
# eyelink <- read_eyelink_asc("recording.asc")
# smi     <- read_smi("begaze-export.txt")

## -----------------------------------------------------------------------------
# x$raw
# x$vendor_metadata
# x$coordinate_spaces
# x$streams
# x$provenance
# 
# audit_coordinate_spaces(x)
# audit_timebase(x)
# audit_clock_sync(x)

Try the eyeprocess package in your browser

Any scripts or data that you put into this service are public.

eyeprocess documentation built on Sept. 28, 2026, 5:08 p.m.