trialTime: Extracts trial times from raw .asc files

View source: R/trialTime.R

trialTimeR Documentation

Extracts trial times from raw .asc files

Description

Extracts trial times from raw .asc files

Usage

trialTime(
  data_list,
  maxtrial = 999,
  startFlag = "SYNCTIME",
  endFlag = "DISPLAY OFF"
)

Arguments

data_list

Input of data files to be processed. This can be specified in three ways:

  1. a directory that contains all the files (it will select all files ending with ".asc", and order them by participant number, if present).

  2. Directory to a txt file that contains all the .asc data file names inside: e.g., data_list= "C:/My Data/data_list.txt". In the .txt file, the directory for each .asc data file should appear on a separate row, e.g.: C:/My Data/subject1.asc /n C:/My Data/subject2.asc

  3. A directory to a single .asc file: e.g., data_list= "C:/My Data/subject1.asc".

maxtrial

Maximum number of trials in the experiment

startFlag

The flag in the data that indicates the start of trial (default: SYNCTIME in Eyetrack/Eyelink)

endFlag

The flag in the data that indicates the end of the trial (default: DISPLAY OFF in Eyetrack)

Author(s)

Martin R. Vasilev


martin-vasilev/EMreading documentation built on June 23, 2024, 7:38 p.m.