rescale | R Documentation |
Uniform Rescaling
rescale(
x,
new_min = 0,
new_max = 1,
old_min = min(x, na.rm = TRUE),
old_max = max(x, na.rm = TRUE)
)
x |
A numeric vector to rescale |
new_min |
New min |
new_max |
New max |
old_min |
Old min |
old_max |
Old max |
A rescaled version of x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.