Description Usage Arguments Value Author(s)
View source: R/data_manipulation.R
scales a variable to the interval [0;1]
1 2 3 4 5 6 7 8 9 10 11 12 13 | rescale_unit(
x,
lower = min(x, na.rm = T),
upper = max(x, na.rm = T),
scale = 1
)
rescale_zero_one(
x,
lower = min(x, na.rm = T),
upper = max(x, na.rm = T),
scale = 1
)
|
x |
numerical vector |
lower |
lowest possible value |
upper |
highest possible value |
numerical vector
Martin Schmettow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.