Skip to content

Commit

Permalink
fix .data
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Oct 19, 2024
1 parent 3b22198 commit d81f2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/data_combine.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ check_timings.eeg_epochs <- function(.data,
switch_epo <- .data$timings$epoch[switch_locs]
switch_sample <- .data$timings$sample[switch_locs]
locs <- (switch_locs + 1):n_rows
data$timings$epoch[locs] <- .data$timings$epoch[locs] + switch_epo
data$timings$sample[locs] <- .data$timings$sample[locs] + switch_sample
.data$timings$epoch[locs] <- .data$timings$epoch[locs] + switch_epo
.data$timings$sample[locs] <- .data$timings$sample[locs] + switch_sample
} else {
for (i in 1:(length(switch_locs) - 1)) {
switch_epo <- .data$timings$epoch[switch_locs[i]]
Expand Down

0 comments on commit d81f2c0

Please sign in to comment.