verhoeff_validate.Rd
Enter a number, and an existing check digit. Function will return true if the supplied check digit is a correct verhoeff check digit for the given number
verhoeff_validate(number, check_digit)
number | A numerical input |
---|---|
check_digit | An existing check digit for the input number |
Logical vector
verhoeff::verhoeff_validate(123, 3)#> [1] TRUE