View source: R/VerifyCheckDigit.R
VerifyCheckDigit | R Documentation |
Verify whether a value ends with a valid check digit
VerifyCheckDigit(x, method)
x |
character vector of values to verify |
method |
a character value naming the check digit algorithm to use |
logical vector the same length as x
VerifyCheckDigit('12340', 'Verhoeff') # TRUE VerifyCheckDigit('21340', 'Verhoeff') # FALSE VerifyCheckDigit('13240', 'Verhoeff') # FALSE VerifyCheckDigit('12430', 'Verhoeff') # FALSE VerifyCheckDigit('12304', 'Verhoeff') # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.