artifactRejection: Artifact rejection

Description Usage Arguments Value

View source: R/erp_preprocess.R

Description

artifactRejection performs artifact rejection on segmented data.

Usage

1
2
3
4
5
6
7
8
artifactRejection(
  dat,
  markers = NULL,
  artrej_options = artrejOptions(),
  return_data = TRUE,
  return_details = TRUE,
  print_result = TRUE
)

Arguments

dat

numeric array (EEG-data) with the following named dimensions (dimension order does not matter): chan, time, trial

markers

if not NULL (default), a matrix or data.frame containing the characteristics of the trials (markers)

artrej_options

a named list containing the parameters for the artifact rejection criteria. See artrejOptions for details.

return_data

logical value, if TRUE (default), dat and markers without rejected trials are returned

return_details

logical value, if TRUE (default), the full array of results (e.g., bad trials for each channel and for each criterion) is returned as an attribute of bad_trials (see Values section)

print_result

logical value, if TRUE (default), a summary of the results is printed to the console

Value

A named list containing bad_trials (trials identified with artifacts) and the modified input data (dat and markers without contaminated trials)


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.