ppl_prep_data {PupilPre} | R Documentation |
Check the classes of specific columns and re-assigns as necessary.
Description
ppl_prep_data
checks for necessary columns and converts the class
if needed.
Usage
ppl_prep_data(data, Subject = NULL, Item = NA,
EventColumns = c("Subject", "TRIAL_INDEX"))
Arguments
data |
A data frame object created from an Eyelink Sample Report. |
Subject |
An obligatory string containing the column name corresponding to the subject identifier. |
Item |
An optional string containing the column name corresponding to the item identifier; by default, NA. |
EventColumns |
A vector specifying the columns which will be used for creating the Event variable; by default, Subject and TRIAL_INDEX. |
Value
An object of type data table as described in tibble.
Examples
# Load example data
data("Pupilex1")
dat <- ppl_prep_data(Pupilex1, Subject = "RECORDING_SESSION_LABEL",
Item = "item",
EventColumns = c("Subject","TRIAL_INDEX"))
# Please see the vignettes for detailed example usage.
# vignette("PupilPre_Basic_Preprocessing", package="PupilPre")
[Package PupilPre version 0.6.2 Index]