range_scale | R Documentation |
Scale vector to a defined range.
range_scale(x, range = c(0, 1))
x |
a numeric vector |
range |
a vector with two values: lower and higher. |
a scaled vector.
set.seed(100)
x <- rnorm(10)
range_scale(x, range = c(10, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.