rm_baseline: Baseline correction

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

View source: R/baseline_correction.R

Description

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.

Usage

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

## S3 method for class 'eeg_data'
rm_baseline(data, time_lim = NULL, ...)

## S3 method for class 'eeg_epochs'
rm_baseline(data, time_lim = NULL, ...)

## S3 method for class 'data.frame'
rm_baseline(data, time_lim = NULL, ...)

## S3 method for class 'eeg_tfr'
rm_baseline(data, time_lim = NULL, type = "divide",
  ...)

## S3 method for class 'eeg_evoked'
rm_baseline(data, time_lim = NULL, ...)

Arguments

data

Data to be baseline corrected.

...

other parameters to be passed to functions

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.

type

Type of baseline correction to apply. Options are ("divide", "ratio", "absolute", "db")

Methods (by class)

Author(s)

Matt Craddock matt@mattcraddock.com


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