reportTrials: Extract a trial report from an ELascii object

Description Usage Arguments Details Value Author(s) Examples

View source: R/makeReport.R

Description

Extract a trial report from an ELascii object

Usage

1

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 [email protected]

Examples

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

davebraze/FDBeye documentation built on April 24, 2018, 7:45 p.m.