RichResult-emitting analyses for the 13 TPS crime datasets
Source:R/tps_all_analyze.R
morie_tps_analyze.RdR-side port of morie.tps_all_analyze. Provides a uniform
bundle (temporal + spatial + offence + neighbourhood-concentration)
that runs on any of Toronto Police Service's 13 public crime CSVs
plus a cross-category comparison driver.
Details
Functions
morie_tps_temporal_summary: year / month / dow / hour rollups.morie_tps_spatial_summary: neighbourhood / division / premises / location-type + lat-lon bbox.morie_tps_offence_summary: OFFENCE / UCR / CSI rollups.morie_tps_neighbourhood_concentration: Gini + top-10/top-20 share across HOOD_158.morie_tps_crime_compare: side-by-side counts and YoY across multiple TPS data.frames.morie_tps_analyze_one: full bundle on one frame.morie_tps_analyze_all: full bundle across every TPS data.frame supplied in a named list.morie_tps_analyze_assault(), ...,morie_tps_analyze_theftover(): 13 thin convenience aliases.
Each summary callable returns a named list carrying summary
lines, optional tables, optional warnings, and a plain-language
interpretation. The aggregate morie_tps_analyze_one()
nests these sub-results under named keys.