Learn R Programming

tableschema.r (version 1.1.2)

constraints.checkMinLength: Check if minimum character length constraint is met

Description

Specify the minimum length of a character

Usage

constraints.checkMinLength(constraint, value)

Value

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

Arguments

constraint

numeric constraint, minimum character length

value

character to meet the constraint

See Also

Examples

Run this code

constraints.checkMinLength(constraint = list(3), value = "hi")

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

Run the code above in your browser using DataLab