Learn R Programming

VWPre (version 1.2.4)

ds_options: Determine downsampling options based on current sampling rate

Description

ds_options determines the possible rates to which the current sampling rate can downsampled. It then prints the options in both bin size (milliseconds) and corresponding sampling rate (Hertz).

Usage

ds_options(SamplingRate, OutputRates = "Suggested")

Arguments

SamplingRate

A positive integer indicating the sampling rate (in Hertz) used to record the gaze data, which can be determined with the function check_samplingrate.

OutputRates

A string ("Suggested" or "All") controlling if all rates are output, or if only whole rates (default) are output.

Value

A printed summary of options (bin size and rate) for downsampling.

Examples

Run this code
# NOT RUN {
library(VWPre)
# Determine downsampling options...
ds_options(SamplingRate = 1000)
# }

Run the code above in your browser using DataLab