View source: R/normalization.R
centerX | R Documentation |
It centers a numeric matrix with dimension N x N by row (rows=TRUE) or column (rows=FALSE).
centerX(X, rows = TRUE)
X |
Numeric matrix or data.frame of any size. |
rows |
If TRUE, the operation is done by row; otherwise, it is done by column. (Defaults: TRUE). |
Centered X (class "matrix").
dat <- matrix(rnorm(25),ncol=5,nrow=5)
centerX(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.