Block: Combine gaze- and stimdata for an experimental Block

Description Usage Arguments Details Value

Description

Block is a generic function for initializing a Block object, which represents the gazedata and stimdata for each trial in an experimental block. Each trial is represented as a data.frame of the gazedata with attributes for the stimdata. The Block object is a list of trials.

Usage

1
2
3
4
5
6
7
Block(...)

## S3 method for class 'character'
Block(block_path, ...)

## S3 method for class 'Gazedata'
Block(gazedata, stimdata, ...)

Arguments

...

Additional arguments passed onto S3 methods. Currently ignored.

block_path

A character string. The full file path of the gazedata and stimdata files (which should have the same directory path and basename) without the file extensions.

gazedata

A Gazedata object.

stimdata

A Stimdata object.

Details

Block.Gazedata is a method for initializing a Block object from a Gazedata object and a Stimdata object.

Block.character is a function for initializing a Block object from the full file path of the block, excluding its extension (since the extension is different for the stimdata and gazedata files).

Value

A Block object—i.e., a list of trials, where each trial is represented as a data.frame of its gazedata, augmented with attributes for the stimdata.


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