Process gorilla eye tracking data (earlier gorilla format)
Source:R/gorilla_eye_processing_old.R
gorilla_eye_processing_old.RdThe earlier version of gorilla_eye_processing(), kept so that old scripts
still work. It works on the older gorilla eye tracking columns (type,
x_pred_normalised, zone_name etc.), and gives one row per file
(filename) rather than per trial. For current Task Builder 2 data use
gorilla_eye_processing().
Usage
gorilla_eye_processing_old(
data,
td = NULL,
link = c("pid", "sid"),
zone = "gorilla",
conf_threshold = 0.5
)Arguments
- data
The list of data from a gorilla import (or the continuous data table itself).
- td
Optional trial level data.table. If given, the eye measures are merged into it using the columns in
link.- link
The columns to merge
tdon, defaultpidandsid.- zone
Not currently used.
- conf_threshold
Minimum face confidence (
face_conf) for a sample to count towards the time spent in a zone.