Learn R Programming

abjutils (version 0.2.3)

carf_calc_dig: Calculate check digit for CARF

Description

Returns the check digit of a CARF number or full number with the check digit.

Usage

carf_calc_dig(id, build = FALSE, verify = TRUE)

Arguments

id

Lawsuit number (including trailling zeros), excluding the check digit.

build

Whether or not the function return the complete number (or only the check digits)?

verify

Verify if number is well formed (gives error if it's not)

Value

The check digits or the complete identification number

Examples

Run this code
# NOT RUN {
{
carf_calc_dig("10120.008427/2003", build = TRUE)
carf_calc_dig("15374.002430/99", build = FALSE)
carf_calc_dig(c("101200084272003", "1537400243099"))
# }
# NOT RUN {
carf_calc_dig("10766.000511/96-12")
# }
# NOT RUN {
}

# }

Run the code above in your browser using DataLab