verhoeff_validate: verhoeff_validate

Description Usage Arguments Value Examples

View source: R/verhoeff.R

Description

Enter a number, and an existing check digit. Function will return true if the supplied check digit is a correct verhoeff check digit for the given number

Usage

1
verhoeff_validate(number, check_digit)

Arguments

number

A numerical input

check_digit

An existing check digit for the input number

Value

Logical vector

Examples

1
verhoeff::verhoeff_validate(123, 3)

verhoeff documentation built on Jan. 26, 2021, 5:06 p.m.