verhoeff {CheckDigit}R Documentation

Verhoeff algorithm implementation

Description

The Verhoeff algorithm is appropriate for numerical data and detects all single-digit substitutions (x to y) and adjacent digit transpositions (xy to yx). In addition, the Verhoeff check digit can detect most twin errors (xx to yy), jump twin errors (xyx to zyz), jump transpositions (xyz to zyx), and phonetic errors ("sixty" to "sixteen").

Usage

AppendCheckDigit.Verhoeff(x)

VerifyCheckDigit.Verhoeff(x)

Arguments

x

character vector of values

References

Verhoeff, J. "Error Detecting Decimal Codes", Mathematical Centre Tract 29, The Mathematical Centre, Amsterdam, 1969.


[Package CheckDigit version 1.0.0 Index]