Description Usage Arguments Value Examples
ppl_select_recorded_eye
examines each event and determines which
eye contains interest area information, based on the Recording
parameter (which can be determined using ppl_check_eye_recording
).
This function then selects the data from the recorded eye and copies it to
new columns (Pupil, Gaze_X, Gaze_Y, Velocity_X, Velocity_Y, Acceleration_X,
Acceleration_Y, In_Blink, In_Saccade). The function prints a summary of the output.
1 | ppl_select_recorded_eye(data, Recording = NULL, WhenLandR = NA)
|
data |
A data table object output by |
Recording |
A string indicating which eyes were used for recording gaze data ("R" when only right eye recording is present, "L" when only left eye recording is present, "LorR" when either the left or the right eye was recorded, "LandR" when both the left and the right eyes were recorded). |
WhenLandR |
A string indicating which eye ("Right" or "Left) to use if gaze data is available for both eyes (i.e., Recording = "LandR"). |
A data table with 11 additional columns added to data
.
1 2 3 4 5 6 7 8 | # Load example data
data("Pupilex2")
dat <- ppl_select_recorded_eye(data = Pupilex2, Recording = "R",
WhenLandR = "Right")
# Please see the vignettes for detailed example usage.
# vignette("PupilPre_Basic_Preprocessing", package="PupilPre")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.