Learn R Programming

tableschema.r (version 1.1.2)

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

Description

Specify the maximum length of a character

Usage

constraints.checkMaxLength(constraint, value)

Value

TRUE if character length is equal to or less than the constraint

Arguments

constraint

numeric constraint, maximum character length

value

character to meet the constraint

See Also

Examples

Run this code

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

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

Run the code above in your browser using DataLab