scales::rescale
R/makeDummyInputs.R
rescale.Rd
This is a simple function copied from the scales package (almost the same).
scales
rescale(x, to)
a numeric vector
numeric
a numeric vector of length 2. The new range of values.