View source: R/artifact_edition.R
| eeg_events_to_NA | R Documentation | 
Remove (transform to NA) problematic events from the signal table of an eeg_lst.
eeg_events_to_NA(
  x,
  ...,
  .n_chs = NULL,
  .entire_seg = TRUE,
  .drop_events = TRUE,
  .all_chs = FALSE
)
x | 
 An   | 
... | 
 Description of the problematic event.  | 
.n_chs | 
 If set to   | 
.entire_seg | 
 If set to   | 
.drop_events | 
 If set to   | 
.all_chs | 
 Deprecated.  | 
An eeg_lst.
Other events functions: 
eeg_artif
## Not run: 
# Signals with artifacts are turned into NA values:
faces_clean <- faces_seg_artif %>%
  eeg_events_to_NA(.type == "artifact", .entire_seg = TRUE, .drop_events = TRUE)
# Specific segments are turned into NA values:
faces_clean <- faces_seg_artif %>%
  eeg_events_to_NA(.id %in% c(1:3), .entire_seg = TRUE, .drop_events = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.