Description Usage Arguments Value Methods (by class) Author(s) See Also Examples
View source: R/data_selection.R
This is a generic function for selection of electrodes from an EEG dataset.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | select_elecs(data, ...)
## Default S3 method:
select_elecs(data, electrode = NULL, keep = TRUE, ...)
## S3 method for class 'eeg_data'
select_elecs(data, electrode, keep = TRUE, df_out = FALSE, ...)
## S3 method for class 'eeg_evoked'
select_elecs(data, electrode = NULL, keep = TRUE, df_out = FALSE, ...)
## S3 method for class 'eeg_ICA'
select_elecs(data, component, keep = TRUE, df_out = FALSE, ...)
## S3 method for class 'eeg_tfr'
select_elecs(data, electrode, keep = TRUE, df_out = FALSE, ...)
|
data |
An EEG dataset. |
... |
Arguments used with related methods |
electrode |
A character vector of electrode labels for selection or removal. |
keep |
Defaults to TRUE. Set to false to *remove* the selected electrodes. |
df_out |
Defaults to FALSE. Set to TRUE to return a dataframe rather
than an |
component |
Component to select |
Data frame with only data from the chosen electrodes
eeg_data
object with selected electrodes removed/kept.
default
: Select electrodes from a generic data frame.
eeg_data
: Select electrodes from a eeg_data
object.
eeg_evoked
: Select electrode from an eeg_evoked object
eeg_ICA
: Select components from eeg_ICA
objects.
eeg_tfr
: Select electrodes from eeg_tfr
objects.
Matt Craddock, matt@mattcraddock.com
select_times
and select_epochs
Other Data selection functions:
select_times()
1 2 3 | names(demo_epochs$signals)
keep_A5 <- select_elecs(demo_epochs, electrode = "A5")
remove_A5 <- select_elecs(demo_epochs, electrode = "A5", keep = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.