Specify the minimum length of a character

constraints.checkMinLength(constraint, value)

Arguments

constraint

numeric constraint, minimum character length

value

character to meet the constraint

Value

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

See also

Examples

constraints.checkMinLength(constraint = list(3), value = "hi")
#> [1] FALSE
constraints.checkMinLength(constraint = 2, value = "hello")
#> [1] TRUE