Description Usage Arguments Value Examples
This function centers and scales the columns of a matrix. It essentially produces the same result as scale
1 | standardize(x)
|
x |
a matrix |
A list with components
x |
the standardized matrix |
center |
column means of |
scale |
norms of the (centered) columns of |
1 2 3 4 | x <- matrix(runif(40),8,5)
x.std <- standardize(x)
colMeans(x.std$x)
colSums(x.std$x^2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.