bound | R Documentation |
Bound the variable by lower and upper limits
bound(x, lower, upper)
x |
Choose variable from which to calculate. |
lower |
Lower bound to cut the values to. |
upper |
Upper bound to limit the values to. |
bound(-10, 0, 10) bound(c(-10, 0, 3, 10, 100, "r"), 0, 10) sapply(c(-10, 0, 100, NULL, NA), bound, 0, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.