Verifies if a check digit is correct

carf_check_dig(id)

Arguments

id

String containing the complete lawsuit number

Value

Whether or not the check digit is well calculated

Examples

{
  carf_check_dig("10120.008427/2003-02")
  carf_check_dig(c("10120008427200302", "10766.000511/96-12"))
}
#> [1]  TRUE FALSE