An R package for convenient access to eight TPS data sets

As part of its broader Race and Identity-Based Data Collection (RBDC) Strategy, the Toronto Police has published eight open data sets that it plans to update periodically. To make accessing these eight data sets as convenient as possible, I put together a little R package (it’s one very simple function that makes use of some base R, plus rio, tibble, and janitor) that grabs the data directly from the TPS’s client-side API, cleans up the column names, and imports it into R in tidy (tibble) format.