Skip to content

Commit

Permalink
Fix |> to be %>%
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Feb 14, 2025
1 parent 02615eb commit 2436284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/CTS.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ toTrialDuration <- function(ev, trialEnd, interval, writeDir = NULL) {
data.frame(id = id, time = seq(time, time+trialEnd, interval))
}, id = reg$id, time = reg$time
)
reg <- do.call(rbind, reg) |>
reg <- do.call(rbind, reg) %>%
merge(unique(ev[, names(ev) != "time", drop = FALSE]), by = "id", all.x = T)
reg <- et(reg)
if(is.character(writeDir)){
if(is.character(writeDir)) {
write.csv(reg, writeDir, row.names = F)
}

Expand Down

0 comments on commit 2436284

Please sign in to comment.