Skip to contents

Reads the Rscript-exported mirror at file.path(morie_cache_dir("otis"), "otis_main.csv") unless csv_path is supplied. The expected schema is 10 columns: end_fiscal_year, unique_individual_id, region_at_time_of_placement, region_most_recent_placement, gender, age_category, mental_health_alert, suicide_risk_alert, suicide_watch_alert, number_of_placements.

Usage

morie_otis_load(csv_path = NULL, use_readr = FALSE)

Arguments

csv_path

Optional explicit CSV path.

use_readr

If TRUE and readr is installed, use readr::read_csv; otherwise base read.csv. Default FALSE (base R for CRAN portability).

Value

data.frame.

Details

To refresh the cache from the canonical correctional_stats_report_environment.RData fixture, run the repository script scripts/export_otis_csv.R.

See also

Examples

if (FALSE) { # \dontrun{
  df <- morie_otis_load()
} # }