DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
dplyr average columns
library(dplyr) mutate(df, IVMean = rowMeans(select(., starts_with("IV")), na.rm = TRUE))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#dplyr
#average
#columns
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit