Description Usage Arguments Value See Also Examples
Take a numeric vector or matrix and scale it to a new range.
1 | normalize(x, new_min = 0, new_max = 1)
|
x |
A numeric vector or matrix |
new_min |
The new min value for the input |
new_max |
The new max value for the input |
A matrix or vector with values normalized to the given range.#'
scale
1 | normalize(1:10, new_min = -10, new_max = -9)#'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.