View source: R/misc_functions.R
normalise | R Documentation |
This function normalizes a numeric vector so that its values are scaled to lie within the 0 to 1 range. If all elements in the vector are identical, the function returns 1.
normalise(x, ...)
x |
A numeric vector to be normalized. |
... |
Additional arguments (currently unused). |
A numeric vector with values scaled between 0 and 1, or a single value 1 if all elements are identical.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.