constraints.checkMaxLength {tableschema.r} | R Documentation |
Check if maximum character length constraint is met
Description
Specify the maximum length of a character
Usage
constraints.checkMaxLength(constraint, value)
Arguments
constraint |
numeric constraint, maximum character length |
value |
character to meet the constraint |
Value
TRUE if character length is equal to or less than the constraint
See Also
Examples
constraints.checkMaxLength(constraint = list(2), value = "hi")
constraints.checkMaxLength(constraint = 2, value = "hello")
[Package tableschema.r version 1.1.2 Index]