Min-max scaling (min-max normalization).
This function resembles RESCALE()
and it is just equivalent to RESCALE(var, to=0:1)
.
scaler(v, min = 0, max = 1)
v |
Variable (numeric vector). |
min |
Minimum value (default is 0). |
max |
Maximum value (default is 1). |
A vector of rescaled variable.
scaler(1:5) # the same: RESCALE(1:5, to=0:1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.