A far superior version of this package is our cwi
package
This R package was developed for our work in-house at DataHaven, including speeding up and making reproducible the process of generating profiles (example). These functions are also useful for quickly getting neighborhood data for visualization or other projects. It includes functions to pull tables from the ACS API via the acs
package, aggregate over custom geographies such as groups of tracts or towns, and arrange columns for output.
Data available in the package:
nhv_neighborhoods
, a nested list of tracts & block groups for New Haven neighborhoodsnhv_tracts
, a nested list of New Haven neighborhoods by tract onlyhfd_tracts
and w_hfd_tracts
, nested lists of Hartford and West Hartford neighborhoods by tract onlyregions
, a list of towns for each region of ConnecticutThese lists are saved here to standardize them between projects and avoid error from missing block groups, etc.
Depends on acs
, and imports functions from dplyr
, purrr
, stringr
, and magrittr
.
Note: the acs
package requires a Census API key, which you can get from the Census Bureau. To save your key:
acs::api.key.install(key)
Also note that the Census APIs seem to crash pretty often.
To install this package:
devtools::install_github("CT-Data-Haven/acsprofiles")
See the vignette for a common, simplified workflow using several of the functions here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.