Learn R Programming

tableschema.r (version 1.1.2)

constraints.checkEnum: Check Enum

Description

Check if the value is exactly match a constraint.

Usage

constraints.checkEnum(constraint, value)

Value

TRUE if value meets the constraint

Arguments

constraint

numeric list,matrix or vector with the constraint values

value

numeric value to meet the constraint

See Also

Examples

Run this code

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