Description Usage Arguments Details Value Author(s) Examples
Scales the columns of a numeric matrix.
1 |
X |
A numeric matrix. |
type |
The scaling type. See details. |
This function is similar to scale
in base
package, but it can also
normalize the columns of a matrix. Suppose x is one of the columns
in matrix X
. The "standardize
" is defined as
standardize = (x - mean(x))/sd(x)
and the "normalize
" is defined as
normalize = (x - min(x))/(max(x) - min(x)).
The "none
" is just to keep the original values. It is designed for the
grpss
function in purpose.
A scaled numeric matrix.
Debin Qiu, Jeongyoun Ahn
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.