NormalizeMatrix {TRMF} | R Documentation |
Matrix Scaling
Description
A function for normalizing (scaling and centering) a matrix.
Usage
NormalizeMatrix(X, method = c("standard", "robust", "range", "none"),
type = c("global", "rowwise", "columnwise"), na.rm = TRUE)
Arguments
X |
a numeric matrix(like object) |
method |
type of scaling to perform, |
type |
how should normalization be applied. |
na.rm |
logical value, ignore NA values or not. |
Details
Scaling and centering quantities are stored as attributes.
Value
The possibly centered and scaled matrix. Scaling and centering quantities are stored as attributes.
Author(s)
Chad Hammerquist
Examples
x = matrix(1:10, ncol = 2)
NormalizeMatrix(x)
[Package TRMF version 0.2.1 Index]