rescale | R Documentation |
Uses a linear transformation to rescale variable to a specific range (e.g., [0,1] to adhere to a beta distribution). The new minimum/maximum will be equal to the lower/upper bound.
rescale(y, min = 0, max = 1)
y |
vector of numeric values |
min |
numeric value defining the minimum of the target range |
max |
numeric value defining the maximum of target range |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.