Skip to contents

Thin compatibility shim that delegates to morie_datasets_otis_a01_restrictive_confinement(). The OTIS A01 dataset is published openly at https://data.ontario.ca/dataset/data-on-inmates-in-ontario (Ontario Solicitor General; Open Government Licence – Ontario, CKAN resource id 5a0c5804-a055-4031-9743-73f556e43bb4).

Usage

morie_datasets_otis_a01(offline = TRUE, ...)

Arguments

offline

Logical. TRUE (default) reads the included otis_a01_restrictive_confinement_sample.csv fixture. FALSE fetches the live CKAN dataset.

...

Forwarded to morie_datasets_otis_a01_restrictive_confinement().

Value

A data.frame.

Details

Earlier morie versions wrongly claimed this data was FOI-only; that was incorrect and has been retracted as of 3MMM.

Examples

df <- morie_datasets_otis_a01(offline = TRUE)
head(df)
#>   EndFiscalYear UniqueIndividual_ID Region_AtTimeOfPlacement
#> 1          2022   2022-SYNTH-001-RC                  Toronto
#> 2          2022   2022-SYNTH-002-RC                  Eastern
#> 3          2023   2023-SYNTH-003-RC                  Central
#> 4          2023   2023-SYNTH-004-RC                  Western
#> 5          2024   2024-SYNTH-005-RC                 Northern
#>   Region_MostRecentPlacement Gender Age_Category MentalHealth_Alert
#> 1                    Toronto   Male     25 to 49                Yes
#> 2                    Eastern Female     18 to 24                 No
#> 3                    Central   Male     50 to 64                Yes
#> 4                    Western   Male     25 to 49                 No
#> 5                   Northern Female     50 to 64                Yes
#>   SuicideRisk_Alert SuicideWatch_Alert Number_Of_Placements
#> 1                No                 No                    8
#> 2                No                 No                    1
#> 3               Yes                 No                    5
#> 4                No                 No                    2
#> 5                No                Yes                   12