ojo_civ_cases: Query civil cases from the OJO database

View source: R/ojo_civ_cases.R

ojo_civ_casesR Documentation

Query civil cases from the OJO database

Description

Query the Open Justice Oklahoma database for civil cases with a case type of 'SC' (small claims)

Usage

ojo_civ_cases(
  districts = "all",
  vars = NULL,
  case_types = c("CS", "SC", "CJ"),
  file_years = lubridate::year(Sys.Date()),
  ...
)

Arguments

districts

A character vector of districts to query

vars

A character vector of variables to return

case_types

A character vector of case types to query

file_years

A character vector of years to query

...

Placeholder for additional arguments

Value

data, a lazy tibble containing the resulting civil cases

Examples

## Not run: 
ojo_civ_cases()
ojo_civ_cases(districts = c("TULSA", "ADAIR"))
ojo_civ_cases(vars = "all")
ojo_civ_cases(vars = c("updated_at", "created_at"))

## End(Not run)


openjusticeok/ojodb documentation built on Aug. 4, 2024, 3:25 p.m.