rescale | R Documentation |
Rescale a vector to have a specified minimum and maximum.
rescale(x, newRange = c(0, 1))
x |
Numeric object. |
newRange |
Numeric vector of length\NB2. |
Simon D. Jackman
scale and scales::rescale()
vec <- 1:10 rescale(vec, c(2, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.