Check if the value is exactly match a constraint.

constraints.checkEnum(constraint, value)

Arguments

constraint

numeric list,matrix or vector with the constraint values

value

numeric value to meet the constraint

Value

TRUE if value meets the constraint

See also

Examples

constraints.checkEnum(constraint = list(1, 2), value = 1)
#> [1] TRUE
constraints.checkEnum(constraint = list(1, 2), value = 3)
#> [1] FALSE