make_pupillometryr_data: Prepare data for pre-processing in PupillometryR

View source: R/make_pupillometryR_data.R

make_pupillometryr_dataR Documentation

Prepare data for pre-processing in PupillometryR

Description

This should be the first function you run as part of using PupillometryR. This will make sure your data is in the right format for processing. This package is designed to deal with data at it comes out of the eyetracker in a long-form csv style format. Thus data input here would be a long dataframe, wherein each row is a single frame collected by the eyetracker.

Usage

make_pupillometryr_data(data, subject, trial, time, condition, other)

Arguments

data

a raw, long form dataframe organised by subject, trial, and time. if your data is not long form, look at tidyr for examples of conversion.

subject

column name indicating subject ID

trial

column name indicating trial ID. This should be unique for participants

time

column name indicating time column (should be numeric)

condition

column name indicating experimental condition

other

any other column you may wish to keep in the data frame for processing

Value

A dataframe ready to use in PupillometryR

Examples

Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)

PupillometryR documentation built on Sept. 15, 2023, 5:13 p.m.