Replace deprecated mean(data.store) with colMeans(data.store) function in R scripts