Returns the check digit of a CARF number or full number with the check digit.
carf_calc_dig(id, build = FALSE, verify = TRUE)
Lawsuit number (including trailing zeros), excluding the check digit.
Whether or not the function return the complete number (or only the check digits)?
Verify if number is well formed (gives error if it's not)
The check digits or the complete identification number
{
carf_calc_dig("10120.008427/2003", build = TRUE)
carf_calc_dig("15374.002430/99", build = FALSE)
carf_calc_dig(c("101200084272003", "1537400243099"))
}
#> [1] "02" "16"