Harmonized Access to NHANES Survey Data
Overview
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/.
Bug Fixes
- Fixed
create_design()crash for any analysis including 1999 or 2001 NHANES cycles. Theneeds_2yrflag was referenced but never defined, causingobject 'needs_2yr' not foundat 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
wtsaf4yrwhen 1999/2001 cycles are present, matching the calculation logic that already used it. - Added
wtsaf4yrtoglobalVariables()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
- 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
Documentation
- 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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-21 · The repository has a site deploy workflow
pkgdown site last built 2026-08-21
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2025-11-17Named in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.mdCommits: at least 4 crediting it in the message
- Gemini CLIfirst seen 2026-05-01Named in .gitignore: .gemini, GEMINI.md
- Claude Sonnet 4.62 commits · Apr 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.2.12026-02-28
- RR 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.
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.