
Run the full New York Police Department analysis suite
Source:R/nypd_analyze.R
morie_nypd_all_analyses.RdAggregates the applicable descriptive and fairness analyses for NYPD
arrests + complaint data, mirroring morie_otis_all_analyses.
Arguments
- arrests_df
Optional NYPD arrests data frame (carries
perp_raceandlaw_cat_cd);NULL(default) loads the bundled arrests fixture (offline).- complaint_df
Optional NYPD complaint data frame (carries
susp_race);NULLloads the bundled complaint fixture.- out_dir
Optional directory to write per-surface outputs.
Value
A named list of rich-result surfaces: arrests_by_offense,
arrests_by_boro, felony_race_disparity (fairness), and
complaints_by_race.
Examples
# \donttest{
res <- morie_nypd_all_analyses()
names(res)
#> [1] "arrests_by_offense" "arrests_by_boro" "felony_race_disparity"
#> [4] "complaints_by_race"
# }