standardize | R Documentation |
Transform a vector to z scores by subtracting its mean and dividing by its standard deviation
standardize(X)
X |
numeric vector to standardize |
vector of the same length in standardised form
Nicholas Cooper njcooper@gmx.co.uk
x1 <- rnorm(10,100,15); x2 <- sample(10) print(x1) ; standardize(x1) print(x2) ; standardize(x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.