Open dataset of counties from the United States
R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Scrape and tidy code
data
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.md
USA.county.data.Rproj
build.R

README.md

USA.county.data

This package contains a large dataset with data for counties in the United States. This came comes from several sources, see this paper. The electoral data is from the New York Times. The variable names are not pretty, but they should be self-explanatory for most purposes. There are some errors with a few counties, but there are good data for ~3100 counties. Note that Alaska has no counties and as such is included as a state. It has no data for 2008-2012.

Installation

Install it from github with:

devtools::install_github("deleetdk/USA.county.data")

Usage

To use:

data(USA_county_data)

rds and csv files are also provided.