Description Usage Arguments Value
View source: R/erp_preprocess.R
artifactRejection
performs artifact rejection on segmented data.
1 2 3 4 5 6 7 8 | artifactRejection(
dat,
markers = NULL,
artrej_options = artrejOptions(),
return_data = TRUE,
return_details = TRUE,
print_result = TRUE
)
|
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 |
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 |
A named list containing bad_trials (trials identified with artifacts) and the modified input data (dat and markers without contaminated trials)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.