Downloads
1,214
Last updated
Data files
2
Total size
7.37 MB
Format
csv

all_data

clean_data

Police Deaths

This directory contains the data and code behind the story The Dallas Shooting Was Among The Deadliest For Police In U.S. History. The primary source of data is the Officer Down Memorial Page (ODMP), started in 1996 by a college student who is now a police officer and who continues to maintain the database.

File descriptions:

FileDescription
scrape.RScrapes data on the death of every officer tracked on ODMP
all_data.csvOutput of scrape.R
clean.RTakes the data in all_data.csv, cleans it and formats the dates correctly, and tags every entry as human or canine.
clean_data.csvOutput of clean.R
plot.RSummarizes police deaths by category and generates a plot similar to the one below

This dataset was scraped from FiveThirtyEight - police-deaths

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/fivethirtyeight/police-deaths/4 files
  • README.mddocumentationhttps://datahub.io/fivethirtyeight/police-deaths/_r/-/README.md
  • data/all_data.csvhttps://datahub.io/fivethirtyeight/police-deaths/_r/-/data/all_data.csv
  • data/clean_data.csvhttps://datahub.io/fivethirtyeight/police-deaths/_r/-/data/clean_data.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/fivethirtyeight/police-deaths/_r/-/datapackage.json