better to follow the good practice in 26.3.3 Common use cases (#1493)

This commit is contained in:
Mitsuo Shiota
2023-11-09 12:06:09 +09:00
committed by GitHub
parent 3e9e201b6f
commit e542450760

View File

@@ -310,7 +310,8 @@ summarize_means <- function(df, summary_vars = where(is.numeric)) {
df |> df |>
summarize( summarize(
across({{ summary_vars }}, \(x) mean(x, na.rm = TRUE)), across({{ summary_vars }}, \(x) mean(x, na.rm = TRUE)),
n = n() n = n(),
.groups = "drop"
) )
} }
diamonds |> diamonds |>