View source: R/adaptive_utils.R
ifelse_clip | R Documentation |
Clips a numeric vector between two values.
ifelse_clip(lamb, x, y)
lamb |
Numeric vector. Values to be clipped. |
x |
Numeric. Lower bound of the clip range. |
y |
Numeric. Upper bound of the clip range. |
Numeric vector. Clipped values.
lamb <- c(1, 2, 3, 4, 5)
ifelse_clip(lamb, 2, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.