Skip to contents

Return the CSI weight for a TPS open-data category.

Usage

morie_tps_csi_weight(category, variant = c("total", "violent"), weights = NULL)

Arguments

category

TPS category name (e.g. "Assault", "Homicides").

variant

One of "total" or "violent".

weights

Optional named numeric vector overriding the built-in tables. When supplied, takes precedence over variant.

Value

Numeric scalar (0 if unknown).