Answers for "dplyr average columns"

R
0

dplyr average columns

library(dplyr)
mutate(df, IVMean = rowMeans(select(., starts_with("IV")), na.rm = TRUE))
Posted by: Guest on August-07-2020

Browse Popular Code Answers by Language