trim_pre_decimation_cols: Retain only the columns needed to plot pre-decimation...

View source: R/pipeline-handler.R

trim_pre_decimation_colsR Documentation

Retain only the columns needed to plot pre-decimation pipeline steps

Description

Subsets a block of time series data down to the timing columns and pupil signal columns. This trimmed, full-resolution copy is stashed in eyeris$timeseries_pre_decimation before a downsample()/bin() step replaces the working time series with its decimated counterpart, so that diagnostic plots of earlier steps can be shown at the original sampling rate rather than the decimated rate (see issue #294).

Usage

trim_pre_decimation_cols(data)

Arguments

data

A single block of time series data (a data frame)

Value

A data frame containing the timing columns (block, time_orig, time_secs, time_scaled) that are present plus all ⁠pupil_*⁠ columns. A time_scaled column mirroring time_secs is added if it is missing.


eyeris documentation built on June 19, 2026, 9:08 a.m.