Open bnicenboim opened 5 years ago
works:
data_faces_ERPs %>% group_by(condition, .sample_id) %>% mutate_if(is_channel_dbl, ~ ifelse(condition=="1", channel_dbl(NA),. )) %>% mutate_if(is_channel_dbl, ~ ifelse(.id=="1", channel_dbl(NA),. ))
doesn't works:
data_faces_ERPs %>% ungroup() %>% mutate_if(is_channel_dbl, ~ ifelse(condition=="1", channel_dbl(NA),. )) %>% mutate_if(is_channel_dbl, ~ ifelse(.id=="1", channel_dbl(NA),. ))
works:
doesn't works: