Skip to contents

NYPD CJ datasets reference boroughs through three different encodings depending on the table:

Usage

morie_datasets_nyc_nypd_boro_crosswalk()

Value

A data.frame with 4 columns: arrest_boro, boro_nm, borocode, boroname.

Details

arrest_boro

1-letter code "B/Q/M/S/K" (Arrests).

boro_nm

UPPER full name "MANHATTAN" etc. (Complaints).

borocode / boroname

numeric "1"-"5" + Title-Case (Borough Boundaries gthc-hcne).

This helper returns a 5-row crosswalk between all four forms so callers can left-join NYPD data against the morie_datasets_nyc_boroughs() boundary table regardless of which encoding their source uses. Used internally by morie_datasets_nyc_nypd_resolved().