Rdocumentation
powered by
Learn R Programming
RGCCA (version 2.1.2)
scale2: Scaling and Centering of Matrix-like Objects
Description
Standardization (to zero means and unit variances) of matrix-like objects.
Usage
scale2(A, center = TRUE, scale = TRUE, bias = TRUE)
Arguments
A
A numeric matrix.
center
A logical value. If center = TRUE, each column is translated to have zero mean (default: TRUE).
scale
A logical value. If scale = TRUE, each column is transformed to have unit variance (default = TRUE).
bias
Logical value for biaised (\(1/n\)) or unbiaised (\(1/(n-1)\)) estimator of the var/cov (default = TRUE).
Value
A
The centered and/or scaled matrix. The centering and scaling values (if any) are returned as attributes "scaled:center" and "scaled:scale".