ep.eye_interp_pupil: Interpolate over missing pupil data

View source: R/ep.eye_preprocess_helpers.R

ep.eye_interp_pupilR Documentation

Interpolate over missing pupil data

Description

Interpolate over missing pupil data

Usage

ep.eye_interp_pupil(ep.eye, algor = "linear", maxgap = 1000)

Arguments

ep.eye

ep.eye object containing ps_smooth as a column in pupil data.

algor

preferred interpolation algorithm, see imputeTS::na_interpolation for options

maxgap

Maximum amount of missing *time (in ms)* to interpolate over. Anything above this will be left NA. Converts internally from time to nmeasurements if data is not sampled at 1000Hz.


PennStateDEPENdLab/experiment_pipeline documentation built on Nov. 27, 2024, 4:56 a.m.