Normalizes numeric data to a given scale.
Currently implemented for numeric vectors, numeric matrices and data.frame. For matrixes one can operate on rows or columns For data.frames, only the numeric columns are touched, all others are left unchanged. For constant vectors / rows / columns most methods fail, special behaviour for this case is implemented.
The method also handles NAs in in x
and leaves them untouched.
normalize(x, method = "standardize", range = c(0, 1), margin = 1L, on.constant = "quiet")
x |
[ |
method |
[ |
range |
[ |
margin |
[ |
on.constant |
[ |
[numeric
| matrix
| data.frame
].
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.