Description Usage Arguments Details Value
Standardize by subtracting off the mean and dividing by the standard deviation.
1 | standardize(df, vars)
|
df |
Data frame with the data to be standardized |
vars |
Vector of names of columns to be standardized. |
The mean and scale are recorded in named vectors attached to the
output data frame as attributes names mean
and scale
,
respectively.
Data frame with the requested variables standardized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.