select_epochs: Select epochs from eeg_data

Description Usage Arguments Methods (by class) Author(s) See Also

View source: R/data_selection.R

Description

This is a generic function for selecting epochs from an epoched data set.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
select_epochs(data, ...)

## Default S3 method:
select_epochs(data, ...)

## S3 method for class 'eeg_data'
select_epochs(data, ...)

## S3 method for class 'eeg_epochs'
select_epochs(data, epoch_events = NULL,
  epoch_no = NULL, keep = TRUE, df_out = FALSE, ...)

## S3 method for class 'eeg_ICA'
select_epochs(data, epoch_events = NULL,
  epoch_no = NULL, keep = TRUE, df_out = FALSE, ...)

Arguments

data

eeg_epochs object from which to select epochs.

...

Parameters passed to specific methods

epoch_events

Select epochs containing any of the specified events. Can be numeric or a character string. Will override any epoch_no input.

epoch_no

Select epochs by epoch number.

keep

Defaults to TRUE, meaning select the specified epochs. Set to FALSE to remove specified epochs.

df_out

Output a data.frame instead of an eeg_data object.

Methods (by class)

Author(s)

Matt Craddock, matt@mattcraddock.com

See Also

select_times and select_elecs


neuroconductor-devel-releases/eegUtils documentation built on May 5, 2020, 3:49 a.m.