standardize.vector | R Documentation |
Function to standardize a vectorby converting to z-scores.
standardize.vector(x)
x |
|
If sd(x) is 0, then 0*x is returned. If sd(x) is NA, then NA+x is returned.
not exported
standardized vector as z-scores (same size as x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.