standardize | R Documentation |
Function to standardize a vector or columns in a dataframe by converting to z-scores.
standardize(x, cols = NULL, factors = NULL, idxCols = NULL, verbose = FALSE)
x |
|
cols |
|
factors |
|
idxCols |
|
verbose |
|
idxCols are just copied over from the relevant section of each combination of factor levels.
standardized vector as z-scores (same size as x), or dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.