R/scale.R

scale_range.Rd

Rescales continuous vector to have specified minimum and maximum.

scale_range(x, to = c(0, 1), from = range(x, finite = TRUE))

A numeric vector.

numeric

A length-two numeric vector specifying the output range.

A length-two numeric vector specifying the input range.

For internal use only.