minmax {liver} | R Documentation |
Min-Max scaling of numerical variables
Description
Performs Min-Max tranformation for numerical variables.
Usage
minmax(x, col = "auto", min = NULL, max = NULL, na.rm = FALSE)
Arguments
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 |
Value
transformed version of x
.
Author(s)
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
See Also
Examples
x = c(2.3, -1.4, 0, 3.45)
minmax(x)
minmax(x, min = 0, max = 1)
[Package liver version 1.19 Index]