better to follow the good practice in 26.3.3 Common use cases (#1493)
This commit is contained in:
parent
3e9e201b6f
commit
e542450760
|
@ -310,7 +310,8 @@ summarize_means <- function(df, summary_vars = where(is.numeric)) {
|
|||
df |>
|
||||
summarize(
|
||||
across({{ summary_vars }}, \(x) mean(x, na.rm = TRUE)),
|
||||
n = n()
|
||||
n = n(),
|
||||
.groups = "drop"
|
||||
)
|
||||
}
|
||||
diamonds |>
|
||||
|
|
Loading…
Reference in New Issue