cen {ToolsForCoDa} | 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)