This function handles the core epoching and baselining operations for pupil data. It processes time series data to extract epochs based on specified events and optionally computes and applies baseline corrections.
epoch_pupil(
x,
prev_op,
evs,
lims,
label,
c_bline,
a_bline,
bline_type = c("sub", "div"),
bline_evs,
bline_per,
hz,
verbose
)
A list containing epoch and baseline results
An object of class eyeris
derived from load_asc()
The name of the previous operation's output column
Events specification for epoching (character vector or list)
Time limits for epochs (numeric vector)
Label for the epoch output
Logical indicating whether to calculate baseline
Logical indicating whether to apply baseline correction
Type of baseline correction ("sub" or "div")
Events specification for baseline calculation
Baseline period specification
Sampling rate in Hz
A flag to indicate whether to print detailed logging messages
This function is called by the exposed wrapper epoch()
.