A Family of functions for transform the values of a vector such that it falls into a specified range, without modifying the ratios between values.
1 2 3 4 5 6 7 | rescale(x, minx, maxx)
rescale01(x)
rescale11(x)
rescale100(x)
|
x |
numeric vector |
minx |
The desired minimum for the output vector |
maxx |
The desired maximum for the output vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.