minmax | R Documentation |
Performs Min-Max tranformation for numerical variables.
minmax(x, col = "auto", min = NULL, max = NULL, na.rm = FALSE)
x |
a numerical |
col |
a character vector of column names or indices. If |
min |
a numerical value or vector indicating the minimum value(s) to use for Min-Max tranformation; if NULL, the default is based on |
max |
a numerical value or vector indicating the maximum value(s) to use for Min-Max tranformation; if NULL, the default is based on |
na.rm |
a logical value indicating whether NA values in |
transformed version of x
.
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
scaler
, zscore
x = c(2.3, -1.4, 0, 3.45)
minmax(x)
minmax(x, min = 0, max = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.