normalize | R Documentation |
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
].
scale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.