ppl_prep_data: Check the classes of specific columns and re-assigns as...

Description Usage Arguments Value Examples

View source: R/process.R

Description

ppl_prep_data checks for necessary columns and converts the class if needed.

Usage

1
2
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

1
2
3
4
5
6
7
8
9
# 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")

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