Skip to content

Commit fc43d4a

Browse files
committed
perf(group_epi_df): avoid data masking & tidyselect
1 parent 7a3dff5 commit fc43d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/methods-epi_df.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ arrange_col_canonical.epi_df <- function(x, ...) {
470470
#' @export
471471
group_epi_df <- function(x, exclude = character()) {
472472
cols <- key_colnames(x, exclude = exclude)
473-
x %>% group_by(across(all_of(cols)))
473+
reclass(grouped_df(x, cols), attr(x, "metadata"))
474474
}
475475

476476
#' Aggregate an `epi_df` object

0 commit comments

Comments
 (0)