| clip_interval | R Documentation | 
Clip all elements in an array to fall in an interval
clip_interval(x, lower = -Inf, upper = Inf)
| x | numeric array | 
| lower | lower end of the interval | 
| upper | upper end of the interval | 
For each element X in x, clip_interval(X) equals lower if X<lower, upper if X>upper, and X otherwise. This function may be useful to clip predictions to fall in, e.g., [0,1].
clipped array
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.