checkBounded: checkBounded
Description
Checks whether x is defined and lies within the specified bound, stop otherwise.
Usage
checkBounded(x, message = NULL, bound = c(0, 1), inclusive = FALSE)
Arguments
- x
x
- message
identifier for x
- bound
the boundaries, array of size two
- inclusive
whether x might lie on boundary