cen | R Documentation |
centres the columns of a matrix to mean zero.
cen(X,w=rep(1,nrow(X))/nrow(X))
X |
a raw data matrix. |
w |
a vector of case weights. |
returns a matrix
Jan Graffelman (jan.graffelman@upc.edu)
X<-matrix(runif(10),ncol=2)
Y<-cen(X)
print(Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.