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

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

prepare_number(1234)
#> [1] 4 3 2 1