Skip to contents

R-side port of morie.tps_crime. Where the Python module uses TPS_REGISTRY + load_tps_dataset to materialise per-category data.frames, the R-side callables here accept a named list of pre-loaded data.frames (one entry per TPS category) via the dfs argument. Callers are responsible for loading the CSVs (e.g. via utils::read.csv or readr::read_csv) and passing them in keyed by canonical TPS category name (e.g. "Assault", "Homicides", "BicycleTheft").

Details

Callables:

Each callable returns a named list with class c("morie_tps_result", "morie_rich_result", "list") carrying title, summary_lines, tables (when applicable), interpretation, warnings, and a free-form payload.