Skip to contents

Phase 3EEE1. Bundled stratified 349-row sample (50 rows per DESCRIPTION_GROUPE category) of SIM (Service de securite incendie de Montreal) interventions, drawn from the full 172,899-row open feed for years 2005-2026.

Usage

morie_datasets_montreal_sim_interventions(
  offline = TRUE,
  csv_path = NULL,
  max_features = NULL
)

Arguments

offline

If TRUE (default), reads the bundled sample.

csv_path

Optional path to a user-downloaded full CSV.

max_features

Optional row cap.

Value

A data.frame with the 13 SIM columns.

Details

Three source modes:

offline = TRUE (default)

Bundled 349-row sample for tests + intro examples.

csv_path = "..."

Reads a user-downloaded donneesouvertes-interventions-sim.csv (or yearly variant) from the CKAN resource link.

Columns (13): INCIDENT_NBR (per-year incident id), CREATION_DATE_TIME, INCIDENT_TYPE_DESC, DESCRIPTION_GROUPE, CASERNE (fire-hall number), NOM_VILLE, NOM_ARROND (arrondissement), DIVISION, NOMBRE_UNITES (vehicles deployed), MTM8_X, MTM8_Y (Quebec MTM zone 8 NAD83 / EPSG:32188), LONGITUDE, LATITUDE (WGS84, obfuscated to intersections per privacy policy).

References

CKAN package interventions-service-securite-incendie-montreal, https://donnees.montreal.ca/dataset/interventions-service-securite-incendie-montreal.

Examples

df <- morie_datasets_montreal_sim_interventions(offline = TRUE)
nrow(df)              # 349
#> [1] 349
table(df$DESCRIPTION_GROUPE)
#> 
#>                            1-REPOND          AUTREFEU Alarmes-incendies 
#>                50                50                50                50 
#>          FAU-ALER          INCENDIE           NOUVEAU          SANS FEU 
#>                48                50                 1                50