powered by
Perform mean centering
meanCentering(data, names)
A data.frame
column names to mean centering
library(processR) newData=meanCentering(education,colnames(education)[1:3])
Run the code above in your browser using DataLab