centerx | R Documentation |
Centers a matrix.
centerx(x)
x |
a matrix |
Returns a centered matrix, i.e., each column of the matrix is replaced by deviations from its column mean.
The centered matrix.
John Kloke, Joseph McKean
scale
x <- cbind(seq(1,5,length=5),seq(10,20,length=5))
xc <- centerx(x)
apply(xc,1,mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.