Skip to content

Commit 88df207

Browse files
committed
remove some pipes
1 parent 1acc0ad commit 88df207

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

R/grouped_epi_archive.R

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,18 @@ grouped_epi_archive =
369369
}
370370

371371
return(
372-
dplyr::group_by(as_of_df, !!!syms(private$vars),
373-
.drop=private$drop) %>%
374-
dplyr::group_modify(group_modify_fn,
375-
f = f, ...,
376-
ref_time_value = ref_time_value,
377-
new_col = new_col,
378-
.keep = TRUE)
372+
dplyr::group_modify(
373+
dplyr::group_by(as_of_df, !!!syms(private$vars), .drop=private$drop),
374+
group_modify_fn,
375+
f = f, ...,
376+
ref_time_value = ref_time_value,
377+
new_col = new_col,
378+
.keep = TRUE
379+
)
379380
)
380381
})
381-
x <- rbindlist(x) %>% setDF() %>% as_tibble() %>%
382+
# Combine output into a single tibble
383+
x <- as_tibble(setDF(rbindlist(x))) %>%
382384
# Reconstruct groups
383385
group_by(!!!syms(private$vars), .drop=private$drop)
384386

0 commit comments

Comments
 (0)