Damm Algorithm Check Digit Implementation in R