calculate_digit.Rd
Calculates a single Verhoeff Check Digit. This function is exported, but it would usually be called from one of the `verhoeff_*` wrapper functions
calculate_digit(number, d5, d5_p, inv_v)
number | A number you want to calculate the check digit for |
---|---|
d5 | The verhoeff d5 matrix. Retrievable with create_verhoeff_matrices()$d5 |
d5_p | The verhoeff p matrix. Retrievable with create_verhoeff_matrices()$d5_p |
inv_v | The verhoeff inv matrix. Retrievable with create_verhoeff_matrices()$inv_v |
A single integer
#> [1] 8