Rescale numeric vector to have specified minimum and maximum.
Rescale numeric vector to have specified minimum and maximum, but allow for hard boundries. Light wrapper for scales::rescale
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), hard_bounds = TRUE)
- values to rescale
- range to scale to
- range of values the x could have been
TRUE, all values will be forced into the range of
Looks like there are no examples yet.