Description Usage Arguments Methods (by class) Author(s) See Also Examples
View source: R/data_selection.R
This is a generic function for selecting epochs from an epoched data set.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | select_epochs(data, ...)
## Default S3 method:
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,
...
)
|
data |
|
... |
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. |
default
: Select from generic object
eeg_epochs
: Selection of epochs from eeg_epochs
objects.
eeg_ICA
: Selection of epochs from eeg_ICA
objects.
Matt Craddock, matt@mattcraddock.com
1 2 3 | select_epochs(demo_epochs, epoch_no = 1:5)
(demo_ica <- run_ICA(demo_epochs))
select_epochs(demo_ica, epoch_no = 1:5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.