powered by
center and scale columns in a numeric data frame using means and standard deviations
dataScale(df)
A numeric data frame
A list that contains a vector of column means, a vector of column sds, and a scaled data frame.
http://healthcare.ai
healthcareai
# NOT RUN { df <- data.frame(a = c(2,1,3,2,4),b = c(NA,8,6,7,9)) res <- dataScale(df) res # }
Run the code above in your browser using DataLab