create_ET_trial_data: create a trial report from a fixation eyetracking data

View source: R/create_ET_trial_data.R

create_ET_trial_dataR Documentation

create a trial report from a fixation eyetracking data

Description

This was designed to work with eyelink fixation reports and the VWM trial. I can't guarantee it will bring out what you want beyond that so please check the output carefully.

Usage

create_ET_trial_data(data, task, write = F, show_all_missing = F)

Arguments

data

a dataframe read in from a fixation report CSV or txt

task

in quotes, a string regarding the task you are interested in from the task column

write

if TRUE will save a csv in the current working directory

show_all_missing

if T will assume 18 trials per participant and leave blank rows

Value

A formatted dataframe with CP, SwitchRate, MLD and TLT, as well as coding info.

Examples

library(readr)
data <- read_csv("etdata.csv")
data_out <- create_ET_trial_data(data, task = 'VWM', write = F)


samhforbes/DDLab documentation built on Sept. 17, 2023, 9:22 p.m.