recode_off_screen: Check for samples off-screen and marks as NA.

Description Usage Arguments Value Examples

View source: R/process.R

Description

recode_off_screen checks samples falling outside the bounds of the screen and marks them with NA

Usage

1
recode_off_screen(data = data, ScreenSize = NULL, PlotData = FALSE)

Arguments

data

A data frame object created from an Eyelink Sample Report.

ScreenSize

A numeric vector specifying (in pixels) the dimensions of the x and y of the screen used during the experiment.

PlotData

A logical indicating whether or not to output a visualization of the result.

Value

An object of type data table as described in tibble.

Examples

1
2
3
4
5
6
7
8
# Load example data
data("Pupilex3")

dat <- recode_off_screen(data = Pupilex3, ScreenSize = c(1920, 1080),
                         PlotData = FALSE)

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

PupilPre documentation built on March 14, 2020, 1:08 a.m.