Gun Deaths In The US: 2006 - 2020
Information about gun-deaths from the CDC
@kaggle.konradb_gun_deaths_in_the_us_1968_2021
Information about gun-deaths from the CDC
@kaggle.konradb_gun_deaths_in_the_us_1968_2021
Updated dataset for the "Gun Deaths in America" project https://fivethirtyeight.com/features/gun-deaths/, documenting firearm usage fatalities.
The R code for processing the raw data is taken from https://github.com/fivethirtyeight/guns-data
I will be progressively adding the years before 2006, but the data format changed several times, so it is not as fast as I would like :-/ User guide for processing: https://www.cdc.gov/nchs/nvss/mortality_public_use_data.htm
CREATE TABLE guns_2006 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2007 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2008 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2009 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2010 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2011 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2012 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2013 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2014 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2015 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2016 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2017 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2018 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2019 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
CREATE TABLE guns_2020 (
"year" BIGINT,
"month" BIGINT,
"intent" VARCHAR,
"police" BIGINT,
"sex" VARCHAR,
"age" DOUBLE,
"race" VARCHAR,
"hispanic" BIGINT,
"place" VARCHAR,
"education" VARCHAR
);
Anyone who has the link will be able to view this.