View source: R/data-processing.R
constrain_interval | R Documentation |
Constrain vector to be inside interval
constrain_interval(x, lower = 0, upper = 1, verbose = TRUE)
x |
A vector. |
lower |
The smallest possible value of 'x'. |
upper |
The largest possible value of 'x'. |
A vector 'x' where values outside the interval are moved inside.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.