Calcular cada columna medias por dplyr

library(dplyr)
mtcars %>% 
group_by(cyl, gear) %>%
summarise(across(everything(), mean))
Rümeysa Aksu