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 = "")
One or more lawsuit IDs
String or string vector with desired parts (see description)
if (FALSE) {
extract_parts("001040620018260004", "N")
extract_parts("001040620018260004", c("N", "A", "O"))
}