View source: R/smooth_interpolate_pupil.R
smooth_interpolate_pupil | R Documentation |
Smooths the pupil trace before linear or cubic interpolation.
smooth_interpolate_pupil(datafile, pupil = "pupil",
extendpupil = "extendpupil", extendblinks = FALSE,
step.first = "smooth", filter = "moving", maxgap = Inf,
type = NULL, hz = NA, n = NA)
datafile |
data frame. |
pupil |
name of pupil column |
extendpupil |
name of pupil col that was extended |
extendblinks |
blinks already extended in data frame |
step.first |
whether you want to smooth/interpolate or interpolate/smooth |
filter |
use either moving and hann filter |
maxgap |
max number of NAs to interpolate. |
type |
type of interpolation (linear or cubic) |
hz |
recording frequency of ET |
n |
moving average window |
df containing interpolated data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.