View source: R/util.rescale.vector.R
util.rescale.vector | R Documentation |
Scale a vector of values to a new min and max range (defaults to 0-1 range)
util.rescale.vector(values, new.min = 0, new.max = 1)
values |
vector of values to scale |
new.min |
new minimum to scale values to |
new.max |
new maximum to scale values to |
Scale a vector of values to a new min and max range (defaults to 0-1 range)
vector of re-scaled values
## Not run:
tibble::tibble(a=c(3, 2523, 223, 342, 33, 26, 85, 75)) %>%
dplyr::mutate(b = util.rescale.vector(a))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.