calc_dig: Calculate digits for Brazilian lawsuit identification numbers

Description Usage Arguments Value Examples

View source: R/cnj.R

Description

Returns the check digit of a lawsuit numbers in the format unified by the Brazilian National Council of Justice.

Usage

1

Arguments

num

Ordered digits of the lawsuit number (including 0's) excluding the check digit

build

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

Value

The check digits or the complete identification number

Examples

1
2
3
4
{
  calc_dig("001040620018260004", build = TRUE)
  calc_dig("001040620018260004", build = FALSE)
}

abjutils documentation built on Feb. 1, 2022, 9:10 a.m.