assert_bounded.Rdx is between bounds
assert_bounded( x, left = 0, right = 1, inclusive_left = TRUE, inclusive_right = TRUE, name = deparse(substitute(x)) )
| x | Value to verify as being within bounds |
|---|---|
| left | Lower bound |
| right | Upper bound |
| inclusive_left | True/false indicator if lower bound is inclusive |
| inclusive_right | True/false indicator if upper bound is inclusive |
| name | Name |
x is between bounds (inclusive or exclusive)