Skip to content

How to set to NAs some segments of a channel #182

Answered by bnicenboim
bnicenboim asked this question in Q&A
Discussion options

You must be logged in to vote

Example:

eeg_fake <- eeg_lst(signal_tbl = tibble(.id = rep(1:10, each =100),
.sample = sample_int(rep(1:100, 10),500),
P1 = channel_dbl(rnorm(1000)),
P3 = channel_dbl(rnorm(1000))))

eeg_mutate(eeg_fake, P3 = case_when(.id %in% 1:5 ~ NA,
TRUE ~ P3))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bnicenboim
Comment options

You must be logged in to vote
2 replies
@bnicenboim
Comment options

@stonekate
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants