epoch_data: Create epochs from EEG data

Description Usage Arguments Value Methods (by class) Author(s)

View source: R/data_epoching.R

Description

Creates epochs around specified event triggers. Requires data of class eeg_data. Where multiple events are specified, epochs will be created around each event.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
epoch_data(data, ...)

## S3 method for class 'eeg_data'
epoch_data(
  data,
  events,
  time_lim = c(-1, 1),
  baseline = NULL,
  epoch_labels = NULL,
  ...
)

Arguments

data

Continuous data to be epoched.

...

Parameters passed to functions

events

Character vector of events to epoch around.

time_lim

Time in seconds to form epoch around the events. Defaults to one second either side.

baseline

Baseline times to subtract. Defaults to NULL (mean centres epochs). Set to "none" to perform no corrections.

epoch_labels

Character vector of same length as events which'll be used to label the epochs.

Value

Returns an epoched object of class eeg_epochs

Methods (by class)

Author(s)

Matt Craddock matt@mattcraddock.com


kusumikakd/EEG documentation built on June 28, 2020, 12:30 a.m.