constraints.checkMaxLength: Check if maximum character length constraint is met

View source: R/constraints.checkMaxLength.R

constraints.checkMaxLengthR 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

Constraints specifications

Examples


constraints.checkMaxLength(constraint = list(2), value = "hi")

constraints.checkMaxLength(constraint = 2, value = "hello")

frictionlessdata/tableschema-r documentation built on Oct. 1, 2022, 11:44 a.m.