reportTrials: Extract a trial report from an ELascii object

View source: R/makeReport.R

reportTrialsR Documentation

Extract a trial report from an ELascii object

Description

Extract a trial report from an ELascii object

Usage

reportTrials(dat)

Arguments

dat

An object of class "ELascii", as created by readELascii().

Details

trial reports contain summary data from each trial, as well as subject ID, trial number.

Value

Which specific trial variables are available will vary, depending on the idiosyncratic characteristics of the protocol. Regardless, the returned data.frame will contain a report with the following columns, together with any trial variables found in the dataset:

  1. subject: factor for subject ID, taken from the name of the source EDF file.

  2. trialn: factor for trial ID.

  3. time0: integer indicating timestamp (ms) of first sample in recording block.

Returned data.frame will also include trial_vars from edf file if requested (TRUE by default).

Author(s)

Dave Braze davebraze@gmail.com

Examples

fname <- system.file("/extdata/1950006-RAN.asc.gz", package="FDBeye")
e <- readELascii(fname)
efix <- reportTrials(e)

davebraze/FDBeye documentation built on April 28, 2022, 1:20 a.m.