Skip to content

nhanesdata

0.2.2Package record

Harmonized Access to NHANES Survey Data

0packages depend
3.4Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

Instant access to harmonized National Health and Nutrition Examination Survey (NHANES) data spanning 1999-2023. Retrieve pre-processed datasets from reliable cloud storage with automatic type reconciliation and integrated search tools for variables and datasets. Simplifies NHANES data workflows by handling cycle management and maintaining data consistency across survey waves. Data is sourced from https://www.cdc.gov/nchs/nhanes/.

Changes in 0.2.2

Bug Fixes

  • Fixed create_design() crash for any analysis including 1999 or 2001 NHANES cycles. The needs_2yr flag was referenced but never defined, causing object 'needs_2yr' not found at runtime.
  • Fixed create_design() requiring 2-year weight columns (wtint2yr, wtmec2yr) for datasets containing only 1999/2001 cycles, where those columns do not exist in NHANES demographic files.
  • Fixed fasting weight validation to check for wtsaf4yr when 1999/2001 cycles are present, matching the calculation logic that already used it.
  • Added wtsaf4yr to globalVariables() to resolve R CMD check NOTEs.
  • Corrected roxygen documentation that incorrectly stated 4-year fasting weights were not supported.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-29
Show 1 earlier changeHide 1 earlier change
  • ERROR11 OK, 3 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.2.2
README· In the repository, left out of the releaseVignettesYes · 4 · staticNEWSYes · 100% structured · mentions 0.2.2Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
7 (2 internal)includes a package overview page
Examples that run
20%1 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.4K
CRAN downloads in the past year
Rank #8,125 · ~9/day · ~283/mo
Daily download trend is not available in this view yet.
34330 days
1.1K90 days
3.4K1 year
Compare downloads with other packages →
Also on60 r2u4 autocran

Repository

14Stars
2Forks
3Open issues
0Open PRs
3Releases
97Commits
3Commit identities
data-managementnhanespublic-accesspublic-health
97 commits · Last activity 2026-10-22 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
85%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-03-02 · 12026-08-20 · 14
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/kylegrealis/nhanesdata 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

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-21 · The repository has a site deploy workflow

pkgdown site last built 2026-08-21

CRAN release process (1)
cran-comments.md
Automation and maintenance (1)
pre-commit
Show all practicesHide 1 practice
Lint, format, editor (1)
lintr
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-11-17
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.md
    Commits: at least 4 crediting it in the message
  • Gemini CLIfirst seen 2026-05-01
    Named in .gitignore: .gemini, GEMINI.md
Models named in its commits
  • Claude Sonnet 4.62 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
25 external dependencies (excludes base and recommended)

Installing nhanesdata adds 49 packages (28 with compiled code, 39 MB of source tarballs). Heaviest: stringi 11 MB, arrow 4.2 MB, srvyr 3.2 MB.

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 (6)
Author, Maintainer since 0.2.1 (2026)
Contributor
Contributor
Contributor
Contributor
Contributor
Releases (2)

Pick two releases to compare their code metrics.

  • 0.2.2Latest
    record
    2026-05-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.1
    record
    2026-02-28
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-02-28
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
8.0 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("nhanesdata")

The package provides a citation file, so citation() returns the authors' own entry.

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 nhanesdata version 0.2.2 [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