validate_bool: Boolean Expression Validation
Description
Helper to check if a boolean vector is valid.
Usage
validate_bool(x = "", all_names = "")
Value
x is returned if no exception is raised during validation process.
Arguments
- x
a string vector representing the boolean expression to be validated.
- all_names
a character vector of scalars which are allowed to be part of the the boolean expression.