Currently, I'm working on a project where we have to preprocess EEG signals so that later we can use them for a machine-learning algorithm to predict if somebody has a mental disorder according to the EEG.
Right now, I understand the different steps to prepare the EEG data. One of those steps is to remove artefacts which disturb my signals and influence my algorithm. Usually, this step can be done in EEGlab, but I'm wondering if it is possible to do the same in R? I know that there are ICA functions and the eegutils package to process EEGs but I don't know how to exactly remove the artefacts?