Skip to contents

List the NYPD criminal-justice Socrata datasets wrapped by morie

Usage

morie_datasets_nyc_nypd_layers()

Value

A data.frame with 8 columns: dataset_key, label, resource_id, resource_url, permalink (data.cityofnewyork.us/d/<id> stable redirect), data_dictionary_url (XLSX, when published as a dataset attachment; NA_character_ otherwise), footnotes_url (PDF, when published; NA_character_ otherwise), fixture (included-fixture filename).

Currently only nypd_arrests_ytd carries the canonical NYC OpenData attachment URLs (XLSX dictionary + PDF footnotes). The other 7 entries leave those slots NA; PRs welcome to fill them in when the asset UUIDs are looked up at the dataset's landing page.

Examples

reg <- morie_datasets_nyc_nypd_layers()
reg[, c("dataset_key", "resource_id")]
#>               dataset_key resource_id
#> 1   nypd_arrests_historic   8h9b-rp9u
#> 2        nypd_arrests_ytd   uip8-fykc
#> 3 nypd_complaint_historic   qgea-i56i
#> 4      nypd_complaint_ytd   5uac-w243
#> 5        nypd_hate_crimes   bqiq-cu78
#> 6      nypd_uof_incidents   f4tj-796d
#> 7       nypd_uof_subjects   dufe-vxb7
#> 8      nypd_vehicle_stops   hn9i-dwpr