interpolate_pupil: Interpolate missing pupil data using linear interpolation

View source: R/pipeline-interpolate.R

interpolate_pupilR Documentation

Interpolate missing pupil data using linear interpolation

Description

This function fills missing values (NAs) in pupil data using linear interpolation. It uses the zoo::na.approx() function with settings optimized for pupillometry data.

Usage

interpolate_pupil(x, prev_op, verbose)

Arguments

x

A data frame containing the pupil time series data

prev_op

The name of the previous operation's output column

verbose

A flag to indicate whether to print detailed logging messages

Details

This function is called by the exposed wrapper interpolate().

Value

A vector of interpolated pupil values with the same length as the input


eyeris documentation built on July 3, 2025, 9:08 a.m.