clamp | R Documentation |
clamp values in the range of lims
clamp(x, lims = c(0, 1), fill.na = FALSE)
clamp_min(x, value = 0)
clamp_max(x, value = 0)
x |
Numeric vector |
lims |
limits |
fill.na |
If true, values of lims are set to NA; else, values are just
constrained in the range of |
clamp(1:10, lims = c(4, 7), fill.na = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.