View source: R/dplyr_extensions.R
rescale_unit | R Documentation |
scales a variable to the interval [0;1]
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.