Learn R Programming

CheckDigit (version 1.0.0)

AppendCheckDigit: Append a check digit to a value

Description

Append a check digit to a value

Usage

AppendCheckDigit(x, method)

Arguments

x

character vector of values requiring a check digit

method

a character value naming the check digit algorithm to use

Value

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

Examples

Run this code
# NOT RUN {
AppendCheckDigit("1234", "Verhoeff") # 12340

# }

Run the code above in your browser using DataLab