Learn R Programming

verhoeff (version 0.4.0)

prepare_number: prepare_number

Description

Takes a number and prepares it for input to the verhoeff algorithim by reversing it

Usage

prepare_number(number)

Arguments

number

A single number that can be coerced to numeric

Value

A numeric vector of length equal to number of digits in the input

Examples

Run this code
# NOT RUN {
prepare_number(1234)
# }

Run the code above in your browser using DataLab