Append a check digit to a value

Description

Append a check digit to a value

Usage

1
AppendCheckDigit(x, method)

Arguments

x

character vector of values requiring a check digit

method

a character value naming the check digit algorithm to use

Details

See CheckDigit-package for a list of available methods.

Value

character vector similar to x but with a check digit appended to each value

See Also

VerifyCheckDigit, CheckDigit-package

Examples

1
AppendCheckDigit('1234', 'Verhoeff') # 12340

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.