.rescale | R Documentation |
Rescale a vector given a new range
.rescale(x, new.range, old.range = NULL)
x |
a numeric vector |
new.range |
a vector containing the new min and max |
old.range |
(optional) the old range |
the rescaled vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.