knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of cityHealth
is to provide easy access to the CDC's 500 Cities Project.
The original 2016 and 2017 data are in the public domain and easily downloaded from the CDC. Working with the raw data present a number of practical challenges. Each release is nearly 228 megabytes in size (approaching half a gigabyte for both together). The full releases contain data from multiple observational unitsas well as numerous variables that contain metadata that can be stored more efficiently in other formats.
cityHealth
provides "tidy" versions of the CDC's data in a format readily accessible to R
at a fraction of the footprint. Each release is reduced from approximately 228 megabyes to less than 2.8 megabytes. One way this is acheived is by removing metadata from each observation. Thus the tables available in cityHealth
are not identical to the raw data available from the CDC. Another way is by using .rda
files rather than .csv
files, which occupy less disk space.
cityHealth
contains the following data:
ch_tbl_state16
- state estimates, 2016ch_tbl_state17
- state estimates, 2017ch_tbl_tract16
- state estimates, 2016ch_tbl_tract17
- state estimates, 2017ch_tbl_us16
- United States estimates, 2016ch_tbl_us17
- United States estimates, 2017All data are stored as tibbles.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.