Task: Load the sessions for an experimental task

Description Usage Arguments Details Value

Description

Block(...) collects the trials for a single looking-while-listening experiment. Session(...) combines blocks for a single subject. Task(...) combines sessions over multiple subjects.

Usage

1
2
3
4
Task(...)

## S3 method for class 'character'
Task(task_path, partial = NA, handler = warning, ...)

Arguments

...

Additional arguments passed onto S3 methods. Currently ignored.

task_path

a task-level directory. The subdirectories of task_path should be subject directories, that begin with the pattern [0-9]{3}[CLPX], and these subject directories should contain experimental blocks.

partial

a vector of integers used to select some of the subdirectories. Used to partially load the set of sessions for the task, in order to prototype code or test the function. Default is NA.

handler

a function used to handle error messages. By default, an error message is caught and printed as a warning.

Details

A Task object is a list of Trial objects, which all have the same "Task" attribute but do not have the same "Subject" attribute.

Value

a Task object containing all the trials from all the sessions that could be successfully loaded. If a block could not be loaded, its error message is handled using the specified handle function.


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