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

extract_parts(id, parts = "")

Arguments

id

One or more lawsuit IDs

parts

String or string vector with desired parts (see description)

Examples

if (FALSE) {
  extract_parts("001040620018260004", "N")
  extract_parts("001040620018260004", c("N", "A", "O"))
}