checkLuhn | R Documentation |
This function checks if a given number passes the Luhn algorithm. It is commonly used to validate credit card numbers.
checkLuhn(number)
number |
A character string of the number to check against the Luhn algorithm. |
A logical value indicating whether the number passes the Luhn algorithm (TRUE) or not (FALSE).
checkLuhn("4532015112830366") # TRUE
checkLuhn("4532015112830367") # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.