This function can be used to either recreate "mixed" (i.e. channel level) timecourses from an ICA decomposition, or to apply a set of ICA weights to a given dataset for the purpose of removing specific ICA components from that dataset.

apply_ica(data, ...)

# S3 method for eeg_ICA
apply_ica(data, comps = NULL, ...)

# S3 method for eeg_epochs
apply_ica(data, decomp, comps, ...)

Arguments

data

An eeg_ICA or eeg_epochs object.

...

Other parameters.

comps

Components to remove.

decomp

An eeg_ICA object.

Methods (by class)

  • eeg_ICA: From given eeg_ICA object, recreate channel timecourses.

  • eeg_epochs: Combine a specific set of ICA weights with any eeg_epochs object.