Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

calculating every column means by dplyr

library(dplyr)
mtcars %>% 
group_by(cyl, gear) %>%
summarise(across(everything(), mean))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculating #column #means #dplyr
ADD COMMENT
Topic
Name
9+9 =