DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit