bind_limits | R Documentation |
Set lower and upper bounds for data. E.g., 0-100
bind_limits(x, lwr = 0, upr = 1, inverse = FALSE)
x |
Numeric vector. |
lwr |
Lower bounds for transforming x. |
upr |
Upper bounds for transforming x. |
inverse |
Logical for backtransforming the data to the original scale. |
A vector of the input transformed to recognize upper and lower bound limits.
tibble::tibble(num = seq(0.1, 0.8, by = 0.05)) %>%
mutate(trans = bind_limits(num, lwr = 0, upr = 0.81)) %>%
mutate(back = bind_limits(trans, lwr = 0, upr = 0.81, inverse = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.