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.
Arguments
- csv_path
Optional explicit CSV path.
- use_readr
If
TRUEand readr is installed, usereadr::read_csv; otherwise baseread.csv. DefaultFALSE(base R for CRAN portability).
Details
To refresh the cache from the canonical
correctional_stats_report_environment.RData fixture, run the
repository script scripts/export_otis_csv.R.