powered by
This function resembles RESCALE() and it is just equivalent to RESCALE(var, to=0:1).
RESCALE()
RESCALE(var, to=0:1)
scaler(v, min = 0, max = 1)
Variable (numeric vector).
Minimum value (default is 0).
Maximum value (default is 1).
A vector of rescaled variable.
# NOT RUN { scaler(1:5) # the same: RESCALE(1:5, to=0:1) # }
Run the code above in your browser using DataLab