rescale: Rescale numeric vector to have specified minimum and maximum.

Description Usage Arguments

Description

Rescale numeric vector to have specified minimum and maximum, but allow for hard boundries. Light wrapper for scales::rescale

Usage

1
2
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE),
  hard_bounds = TRUE)

Arguments

x

values to rescale

to

range to scale to

from

range of values the x could have been

hard_bounds

If TRUE, all values will be forced into the range of to.



Search within the metacoder package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.