Stimdata: Parse an LWL stimulus data file outputted by Eprime

Description Usage Arguments Details Value

Description

Stimdata is used to read and parse the .txt file that is output by E-prime during a session of a Looking While Listening experiment.

Usage

1
Stimdata(stimdata_path, output_file = lwl_opts$get("write_stimdata"))

Arguments

stimdata_path

Either the full or relative path to the .txt file that is to be parsed.

output_file

Whether to write the parsed stimdata to a csv file. Defaults to FALSE. If TRUE, that stimdata is saved to [folder]/[basename]_stim.csv, where the folder and basename are extracted from the path used in stimdata_path

Details

A stimdata file in a Looking While Listening task file the naming convention: [Task]_[BlockNo]_[SubjectID]. The stimdata file is assigned a class based on the task in the filename, and then methods for extracting the stimdata are dispatched based on that class value. Valid task names include "RWL", "MP", and "Coartic".

Value

A dataframe containing the parsed stimdata. Each row of the dataframe is the stimdata for a single experimental trial.


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.