Skip to contents

MORIE ships a small set of reference CSVs in inst/extdata/ so that the mrm_otis_*() and mrm_tps_*() callables can be exercised without any network call. For full datasets, the on-demand fetchers pull from the original public sources:

Value

The on-demand fetchers (morie_fetch_tps(), morie_fetch_siu()) return the file path to the downloaded or cached CSV; morie_load_dataset() returns the loaded data.frame.

Details

  • OTIS: data.ontario.ca CKAN package data-on-inmates-in-ontario. Resource IDs are baked into morie_dataset_catalog(); use morie_load_dataset("otisb01") (etc.) which calls the existing CKAN fetcher.

  • TPS: Toronto Police Open Data ArcGIS REST. Use morie_fetch_tps(category = "Assault").

  • SIU: Ontario SIU Director's Reports site. Use morie_fetch_siu() which parses the public reports site on demand (per-user, since redistribution of the parsed corpus is not clearly licensed).

Examples

if (FALSE) {
  b01 <- morie_load_dataset("otisb01")
  head(b01)
}