smooth_interpolate_pupil: Smooths the pupil trace before linear or cubic interpolation.

Description Usage Arguments Value

View source: R/smooth_interpolate_pupil.R

Description

Smooths the pupil trace before linear or cubic interpolation.

Usage

1
2
3
4
smooth_interpolate_pupil(datafile, pupil = "pupil",
  extendpupil = "extendpupil", extendblinks = FALSE,
  method.first = "smooth", maxgap = Inf, type = NULL, hz = NA,
  n = NA)

Arguments

datafile

data frame.

pupil

name of pupil column

extendpupil

name of pupil col that was extended

extendblinks

blinks already extended in data frame

method.first

whether you want to smooth/interpolate or interpolate/smooth

maxgap

max number of NAs to interpolate.

type

type of interpolation (linear or cubic)

hz

recording frequency of ET

n

moving average window

Value

df containing interpolated data


jgeller112/gazer documentation built on Jan. 13, 2020, 1:04 p.m.