ar_thresh: Simple absolute value thresholding

View source: R/artefact_rejection.R

ar_threshR Documentation

Simple absolute value thresholding

Description

Reject data based on a simple absolute amplitude threshold. This marks any timepoint from any electrode.

Usage

ar_thresh(data, threshold, reject = FALSE)

## S3 method for class 'eeg_data'
ar_thresh(data, threshold, reject = FALSE)

## S3 method for class 'eeg_epochs'
ar_thresh(data, threshold, reject = FALSE)

Arguments

data

An object of class eeg_data or eeg_epochs.

threshold

In microvolts. If one value is supplied, it will be treated as a +- value.

reject

If TRUE, remove marked data immediately, otherwise mark for inspection/rejection. Defaults to FALSE.

Value

An object of class eeg_data or eeg_epochs

Methods (by class)

  • eeg_data: Reject data using a simple threshold.

  • eeg_epochs: Reject data using a simple threshold.

Author(s)

Matt Craddock matt@mattcraddock.com

Examples

ar_thresh(demo_epochs, c(100))

neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.