powered by
Performs Min-Max tranformation for numerical variables.
minmax(x, col = "auto", min = NULL, max = NULL, na.rm = FALSE)
transformed version of x.
x
a numerical vector, matrix or data.frame.
vector
matrix
data.frame
a character vector of column names or indices. If "auto", all numeric columns will be transformed. If "all", all columns will be transformed.
"auto"
"all"
a numerical value or vector indicating the minimum value(s) to use for Min-Max tranformation; if NULL, the default is based on x.
a numerical value or vector indicating the maximum value(s) to use for Min-Max tranformation; if NULL, the default is based on x.
a logical value indicating whether NA values in x should be stripped before the computation proceeds.
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
scaler, zscore
scaler
zscore
x = c(2.3, -1.4, 0, 3.45) minmax(x) minmax(x, min = 0, max = 1)
Run the code above in your browser using DataLab