powered by
Check if the value is exactly match a constraint.
constraints.checkEnum(constraint, value)
TRUE if value meets the constraint
numeric list,matrix or vector with the constraint values
numeric value to meet the constraint
Constraints specifications
constraints.checkEnum(constraint = list(1, 2), value = 1) constraints.checkEnum(constraint = list(1, 2), value = 3)
Run the code above in your browser using DataLab