Classification and Scoring of U.S. County and ZIP Code Rurality
Overview
Provides USDA Rural-Urban Continuum Codes (RUCC 2023), Rural-Urban Commuting Area codes (RUCA 2020), and a composite rurality score for all U.S. counties. Functions enable lookup by FIPS code, ZIP code, or county name, and easy merging with existing datasets. Data sources include the USDA Economic Research Service, U.S. Census Bureau American Community Survey, and Census TIGER/Line shapefiles.
Data-correctness patch (2026-04-13).
Bug fixes
county_rurality: distances to the nearest large/medium/small metro were computed against an incomplete metro list (15 large / 9 medium / 5 small). Counties near any large metro outside the top 15 — Denver, Minneapolis, Portland, Las Vegas, Charlotte, Indianapolis, Cleveland, Cincinnati, Columbus, Kansas City, Austin, San Antonio, Nashville, Jacksonville, Oklahoma City, Memphis, Louisville, and others — were being measured to New York, Chicago, or Los Angeles and classified as "Suburban" rather than "Urban". Example: Denver County shipped withdist_large_metro = 591, classified Suburban.- Rebuilt with a full metro list shared with the rurality-app web project (52 large / 57 medium / 36 small). After this patch the major urban-core counties (Denver, Hennepin, Multnomah, Mecklenburg, Cuyahoga, Marion-IN, and similar) classify as Urban.
Show all changes in 0.1.1Hide the rest of the changes in 0.1.1
Data
county_rurality: 3,235 rows, unchanged schema. Score distribution (Urban / Suburban / Mixed / Rural / Very Rural): 184 / 908 / 669 / 976 / 498.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK5 OK2026-04-11
Documentation
- Help pages
- 8
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Releases over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/cwimpy/rurality on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-04-03Named in .Rbuildignore: .claudeNamed in .gitignore: .claudeCommits: at least 18 crediting it in the message
- Claude Opus 4.611 commits · Apr 2026
- Claude Opus 4.77 commits · Apr 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.1Latest
- 0.1.02026-04-10
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-10
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 342 KB / 2 files
- Download size
- 414 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("rurality")The package provides a citation file, so citation() returns the authors' own entry.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.