clamp | R Documentation |
Constrain a numeric value within a range.
clamp(value, min.value, max.value)
value |
Value to constrain. |
min.value |
Minimum, inclusive. |
max.value |
Maximum, inclusive. |
The closest number in the range [min.value,max.value] to value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.