extract_parts: Extract different parts from lawsuit ID

View source: R/cnj.R

extract_partsR Documentation

Extract different parts from lawsuit ID

Description

Given one or more lawsuit IDs, this function extracts one or more parts of the IDs given the following correspondence:

  • "N": number

  • "D": verification digits

  • "A": year

  • "J": segment

  • "T": court

  • "O": origin

  • "": all of the above

Usage

extract_parts(id, parts = "")

Arguments

id

One or more lawsuit IDs

parts

String or string vector with desired parts (see description)

Examples

## Not run: 
extract_parts("001040620018260004", "N")
extract_parts("001040620018260004", c("N", "A", "O"))

## End(Not run)

abjur/abjutils documentation built on Feb. 1, 2024, 2:49 p.m.