openjusticeok / ojodb

OJO's R package for opening the black box of our justice system
https://openjusticeok.github.io/ojodb/
GNU General Public License v3.0
5 stars 3 forks source link

Make all `case_types` arguments case insensitive #156

Closed andrewjbe closed 1 year ago

andrewjbe commented 1 year ago

Right now, ojo_crim_cases(districts = "oklahoma", case_types = "cf", file_years = 2022) |> ojo_collect() returns 0 rows, because no cases have a case_type of lowercase "CF" (the same query with case_types = "CF" returns 11,974 rows). It would be easier if we didn't have to remember to capitalize them every time.