Rescale continuous vector to have specified minimum and maximum
rescale(x, to, from, ...)# S3 method for numeric
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), ...)
# S3 method for dist
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), ...)
# S3 method for logical
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), ...)
# S3 method for POSIXt
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), ...)
# S3 method for Date
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE, finite = TRUE), ...)
# S3 method for integer64
rescale(x, to = c(0, 1), from = range(x, na.rm = TRUE), ...)
continuous vector of values to manipulate.
output range (numeric vector of length two)
input range (vector of length two). If not given, is
calculated from the range of x
other arguments passed on to methods