R/bruceR-stats_1_basic.R
scaler.Rd
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 (defaults to 0).
Maximum value (defaults to 1).
A vector of rescaled variable.
scaler(1:5) #> [1] 0.00 0.25 0.50 0.75 1.00 # the same: RESCALE(1:5, to=0:1)