Search
 
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
Name
8+8 =