recode_off_screen {PupilPre} | R Documentation |
Check for samples off-screen and marks as NA.
Description
recode_off_screen
checks samples falling outside the bounds of
the screen and marks them with NA
Usage
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
# 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")
[Package PupilPre version 0.6.2 Index]