View source: R/R_preprocessing.R
scale_center | R Documentation |
Given a dataframe, scale and center the continous features
scale_center(x, categoricalFeatureCols, colMeans, colSd)
x |
A dataframe in order to be processed. |
categoricalFeatureCols |
A vector of the categorical features, we don't want to scale/center these. Should be 1-indexed. |
colMeans |
A vector of the means to center each column. |
colSd |
A vector of the standard deviations to scale each column with. |
A scaled and centered dataset x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.