Skip to contents

For each named TPS category in dfs, groups by the dataset's year column (OCC_YEAR preferred, REPORT_YEAR fallback), restricts to plausible years (1990-2030), and joins all series column-wise into a single panel of incident counts.

Usage

morie_tps_yoy_panel(dfs, categories = NULL)

Arguments

dfs

Named list of TPS data.frames keyed by category name.

categories

Optional character vector restricting which keys of dfs are analysed; defaults to all of them.

Value

A morie_tps_result named list with a single year-by-category table.