Skip to content

rurality

0.1.1Package record

Classification and Scoring of U.S. County and ZIP Code Rurality

0packages depend
2.3Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.1

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 with dist_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

CRAN checks
13OK
Slowest check: 1.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-08
  • NOTE12 OK, 1 NOTE2026-06-07
  • OK5 OK2026-04-11
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 314 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.1.1Citation fileYes · software entry onlyWebsiteYes
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

2.3K
CRAN downloads in the past year
Rank #14,394 · ~6/day · ~195/mo
Daily download trend is not available in this view yet.
30730 days
82690 days
2.3K1 year
Compare downloads with other packages →
Also on42 r2u

Repository

2Stars
0Forks
0Open issues
0Open PRs
2Releases
19Commits
1Commit identities
19 commits · Last activity 2026-04-22 · 0% stars, 30d · Default branch at 0.2.0.9000, ahead of CRAN 0.1.1 (checked 2026-10-21)
Responsiveness
not measured

Stars over time

2026-04-10 · 12026-07-07 · 2
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductContributing guide
Docs source (1)
pkgdown
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-04-03
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Commits: at least 18 crediting it in the message
Models named in its commits
  • Claude Opus 4.611 commits · Apr 2026
  • Claude Opus 4.77 commits · Apr 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing rurality adds 17 packages (10 with compiled code, 16 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    record
    2026-04-15 · current release · diff ↗
  • 0.1.0
    record
    2026-04-10
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rurality version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy