View source: R/rescalatedFunctions.R
| rescale_data | R Documentation |
Standardize the numeric columns of a data.frame.
rescale_data(data, v_mean = NULL, v_sd = NULL)
data |
data.frame containing the variables to be standardized. |
v_mean |
vector of means of the data.frame. The value for the non-numeric columns should be NA. If not given, it is computed from data. |
v_sd |
vector of standard deviations of the data.frame. The value for the non-numeric columns should be NA. If not given, it is computed from data. |
A data.frame with scaled data. Non-numeric columns are also returned in their original position.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.