rray_clip() sets inclusive lower and upper bounds on the values of x.
rray_clip(x, low, high)
| x | A vector, matrix, array or rray. |
|---|---|
| low | A single value. The lower bound. |
| high | A single value. The upper bound. |
x bounded by low and high.
#> [,1] [,2] #> [1,] 1 5 #> [2,] 2 5 #> [3,] 3 5 #> [4,] 4 5 #> [5,] 5 5