Add separators to cleaned PINs to make them more readable in reports and other human-ready outputs. This requires 10 or 14 digits PINs as input. Preserve input PIN length.
pin_format_pretty(pin, full_length = FALSE)
A vector of PINs with separator dashes inserted in the expected places. Ex. 04-34-106-008-0000
pins <- c("04341060080000", "01222040030000")
pin_format_pretty(pins)
#> [1] "04-34-106-008" "01-22-204-003"