Learn R Programming

PupilPre (version 0.6.3)

downsample: Downsample the data

Description

downsample reduces the sampling rate using median values for the Pupil and gaze coordinates.

Usage

downsample(data, SamplingRate = NULL, NewRate = NULL)

Value

An object of type data table as described in tibble.

Arguments

data

A data frame object created from blink_cleanup.

SamplingRate

A positive integer specifying the current sampling rate.

NewRate

A positive integer specifying the desired downsampled rate.

Examples

Run this code
# Load example data
data("Pupilex4")

dat <- downsample(Pupilex4, SamplingRate = 250, NewRate = 25)

# Please see the vignettes for detailed example usage.
vignette("PupilPre_Basic_Preprocessing", package="PupilPre")

Run the code above in your browser using DataLab