Description Usage Arguments Methods (by class) Author(s) Examples
View source: R/baseline_correction.R
Used to remove the mean of a specified time period from the data. Currently only performs subtractive baseline. With a data frame, searches for "electrode" and "epoch" columns, and groups on these when found. An electrode column is always required; an epoch column is not.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | rm_baseline(data, time_lim = NULL, ...)
## S3 method for class 'eeg_data'
rm_baseline(data, time_lim = NULL, verbose = TRUE, ...)
## S3 method for class 'eeg_epochs'
rm_baseline(data, time_lim = NULL, verbose = TRUE, ...)
## S3 method for class 'data.frame'
rm_baseline(data, time_lim = NULL, verbose = TRUE, ...)
## S3 method for class 'eeg_tfr'
rm_baseline(data, time_lim = NULL, type = "divide", verbose = TRUE, ...)
## S3 method for class 'eeg_evoked'
rm_baseline(data, time_lim = NULL, verbose = TRUE, ...)
|
data |
Data to be baseline corrected. |
time_lim |
Numeric character vector (e.g. time_lim <- c(-.1, 0)). If none given, defaults to mean of the whole of each epoch if the data is epoched, or the channel mean if the data is continuous. |
... |
other parameters to be passed to functions |
verbose |
Defaults to TRUE. Output descriptive messages to console. |
type |
Type of baseline correction to apply. Options are ("divide", "ratio", "absolute", "db", and "pc") |
eeg_data
: remove baseline from continuous eeg_data
eeg_epochs
: Remove baseline from eeg_epochs
data.frame
: Legacy method for data.frames
eeg_tfr
: Method for eeg_tfr
objects
eeg_evoked
: Method for eeg_evoked
objects
Matt Craddock matt@mattcraddock.com
1 2 | rm_baseline(demo_epochs)
rm_baseline(demo_epochs, c(-.1, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.