fclamp_int | R Documentation |
This function clamps the values of an integer vector to lie within a specified range [a, b]. Values below a are set to a and values above b are set to b. Optionally, the operation can be performed in-place.
fclamp_int(x, a = 0L, b = 1L, inplace = FALSE)
x |
An integer vector to be clamped. |
a |
The lower bound (default is 0). |
b |
The upper bound (default is 1). |
inplace |
Logical flag indicating whether to modify the input vector in place (default is false). |
An integer vector with values clamped to the range [a, b].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.