Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8984123

Browse files
committedFeb 10, 2025·
perf(epi_slide_opt): try [[<- in place of mutate
1 parent f629dcd commit 8984123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎R/slide.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ epi_slide_opt <- function(
962962
return(.data_group)
963963
}
964964

965-
result <- mutate(.x, .real = TRUE) %>%
965+
result <- .x %>%
966+
`[[<-`(".real", value = TRUE) %>%
966967
group_modify(slide_one_grp, ..., .keep = FALSE) %>%
967968
`[`(.$.real, names(.) != ".real") %>%
968969
arrange_col_canonical() %>%

0 commit comments

Comments
 (0)
Please sign in to comment.