create_ET_trial_data2: create a trial report from a sample eyetracking data cleaned...

View source: R/create_ET_trial_data.R

create_ET_trial_data2R Documentation

create a trial report from a sample eyetracking data cleaned the way Sam likes it.

Description

This was designed to work with cleaned eyetracking data 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_data2(data, write = F, show_all_missing = F)

Arguments

data

a dataframe read in from a fixation report CSV or txt

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 Nov. 12, 2024, 3:24 p.m.