countyhealthR

countyhealthR Package

countyhealthR is an R package that enables programmatic, reproducible access to archived CHR&R data from 2010 to 2025.

The goal of the package is to make CHR&R data more accessible for researchers and analysts. It was inspired by the ease of use of the tidycensus package. Our intent is to continue updating the package with data from 2026 and beyond. Currently, it provides access to archived datasets (2010-2025).

Using the package

The easiest way to get started is to install the stable CRAN version directly into your R environment:

install.packages("countyhealthR")
library(countyhealthR)

The current version of countyhealthR includes four functions to interact with CHR&R data:

  1. list_chrr_measures: see all the measures that are available for a selected release year.
  2. get_chrr_measure_data: download all data for a selected measure of health.
  3. get_chrr_county_data: download all measures for a selected geographic area.
  4. get_chrr_measure_metadata: access additional details about a selected measure, such as the measure’s position within the UWPHI Model of Health

Learn more about each function and its arguments by checking out the reference manual.

For the latest development version, visit the GitHub repository.

Contributions and feedback

CHR&R is actively developing this package. We welcome suggestions or bug reports via the GitHub Issues page.