dplyr mean of columns code example
Example 1: mean of a column pandas
df["Column"].mean()
Example 2: dplyr average columns
library(dplyr)
mutate(df, IVMean = rowMeans(select(., starts_with("IV")), na.rm = TRUE))
df["Column"].mean()
library(dplyr)
mutate(df, IVMean = rowMeans(select(., starts_with("IV")), na.rm = TRUE))