scale_to_unit.RdTransform values by scaling to the unit interval
scale_to_unit(vals)A numeric vector corresponding to the observed values of
the variable of interest, to be re-scaled to between 0 and 1.
A numeric vector of the same length as vals, where the
values are re-scaled to lie between 0 and 1.
A transformation that scales an arbitrary set of input values to
the unit interval. See scale_to_original for a corresponding
backtransformation.