Scale values to the unit interval

scale_to_unit(vals)

Arguments

vals

A numeric vector of values to be scaled into the closed interval [0, 1].