Summarise Gazepoint AOI entry episodes
Source:R/summarise_gazepoint_aoi_entries.R
summarise_gazepoint_aoi_entries.RdConvert sample-level AOI states into AOI entry episodes. An entry starts whenever the AOI state changes within a subject, media, trial, or other grouping unit.
Arguments
- data
A Gazepoint master/sample-level data frame.
- aoi_col
Name of the AOI-state column. If
NULL, the function triesaoi_current,AOI, andaoi_state.- time_col
Name of the time column, in milliseconds.
- group_cols
Character vector of columns defining independent sequences, usually subject/media/trial.
- include_non_aoi
Logical. If
TRUE, non-AOI/background episodes are retained. IfFALSE, they are removed after entry order and neighbouring states have been computed.- non_aoi_values
Character vector of AOI labels treated as background or non-AOI states.
- missing_aoi_label
Label used when the AOI value is missing.