Checks that the input value satisfies specified conditions
certify(x, ..., allow_null = FALSE, id = NULL, return_id = FALSE)gt(l)
gte(l)
lt(u)
lte(u)
bounded(l = NULL, u = NULL, incl_lower = TRUE, incl_upper = TRUE)
The value to be checked.
Conditions to be checked; should be functions that return TRUE/FALSE.
Whether to allow null input.
Name given to the input to aid the user in identifying the bad value.
Whether to return the ID as an attribute. This should only be set to TRUE
when piping the result to another forge function. Defaults to FALSE
.
Lower bound for the inequality condition.
Upper bound for the inequality condition.
Whether to include the left endpoint.
Whether to include the right endpoint.