Description Usage Arguments Details Value References Examples
Rescale a numeric vector
1 2 3 4 5 | center(x, ...)
unit_range(x, ...)
unit_length(x, na.rm = TRUE)
|
x |
a numeric vector |
... |
additional arguments passed to |
na.rm |
if |
center
\frac{x - mean(x)}{sd(x)}
unit_range
\frac{x - min(x)}{max(x) - min(x)}
unit_length
\frac{x}{|| x ||}
a rescaled version of x
.
https://en.wikipedia.org/wiki/Normalization_(statistics)
1 2 3 | center(1:10)
unit_range(1:10)
unit_length(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.