bnicenboim / eeguana

A package for manipulating EEG data in R.
https://bnicenboim.github.io/eeguana/
Other
21 stars 9 forks source link

mutate should identify if I'm replacing a column in the signal_tbl #124

Open bnicenboim opened 4 years ago

bnicenboim commented 4 years ago
data <- eeg_lst(signal_tbl = tibble(.id = rep(1:ntrials, each = nsamples),
                            .sample = sample_int(rep(1:nsamples, times = ntrials), sampling_rate = srate),
                            C = channel_dbl(0)
                            ),
                segments_tbl = tibble(.id = 1:ntrials, trial = 1:ntrials))

data %>% mutate(C = 1)

add C to segments