Return a number with its check digit appended

verhoeff_append(number, sep = "-")

Arguments

number

The number to calculate a check digit for

sep

A separator for the two numbers

Value

Numeric vector of length equal to its input

Examples

verhoeff::verhoeff_append(123)
#> [1] "123-3"