rescale

0th

Percentile

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

Keywords
internal
Usage
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.
Aliases
  • rescale
Documentation reproduced from package metacoder, version 0.1.2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.