Package: nhanesdata 0.2.2

nhanesdata: Harmonized Access to NHANES Survey Data

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/>.

Authors:Kyle Grealis [aut, cre], Amrit Baral [ctb], Natalie Neugaard [ctb], Raymond Balise [ctb], Johannes Thrul [ctb], Janardan Devkota [ctb]

nhanesdata_0.2.2.tar.gz
nhanesdata_0.2.2.zip(r-4.7-any)nhanesdata_0.2.2.zip(r-4.6-any)nhanesdata_0.2.2.zip(r-4.5-any)
nhanesdata_0.2.2.tgz(r-4.6-any)nhanesdata_0.2.2.tgz(r-4.5-any)
nhanesdata_0.2.2.tar.gz(r-4.7-any)nhanesdata_0.2.2.tar.gz(r-4.6-any)
nhanesdata_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nhanesdata/json (API)

# Install 'nhanesdata' in R:
install.packages('nhanesdata', repos = c('https://kylegrealis.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kylegrealis/nhanesdata/issues

Pkgdown/docs site:https://www.kylegrealis.com

On CRAN:

Conda:

data-managementnhanespublic-accesspublic-health

7.03 score 14 stars 24 scripts 378 downloads 5 exports 53 dependencies

Last updated from:273add04db. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK175
source / vignettesOK407
linux-releaseOK166
macos-releaseOK211
macos-oldrelOK222
windows-develOK135
windows-releaseOK101
windows-oldrelOK122
wasm-releaseOK133

Exports:create_designget_urlread_nhanesterm_searchvar_search

Dependencies:arrowaskpassassertthatbitbit64clicpp11curlDBIdplyrfarverforeigngenericsgluehttrjsonlitelabelinglatticelifecyclemagrittrMatrixmimeminqamitoolsnhanesAnumDerivopensslpillarpkgconfigplyrpurrrR6RColorBrewerRcppRcppArmadillorlangrvestscalesselectrsrvyrstringistringrsurveysurvivalsystibbletidyrtidyselectutf8vctrsviridisLitewithrxml2

Available NHANES Datasets
Available Datasets | Quick Start | Categories | Codebook Validation Status | 🛠️ Fix Applied: CDQ (Cardiovascular Health) | ⚠️ Caution: OHXDEN (Oral Health - Dentition) | Notes

Last update: 2026-05-06
Started: 2026-02-18

Creating Survey Design Objects
Why Survey Weights Matter | Understanding NHANES Weights | Weight Calculation Logic | Early Cycles (1999-2002) | Example Calculation | Basic Usage | Example 1: Interview Weights | Example 2: MEC Weights | Example 3: Fasting Weights | Handling Edge Cases | Non-Sequential Cycles | Participants Without Valid Weights | Variance Estimation and Lonely PSUs | Required Variables | Workflow Recommendations | Additional Resources

Last update: 2026-02-18
Started: 2026-02-18

Getting Started with NHANES Data
Motivation | Acknowledgments | Installation | Loading Data | Example: Age Distribution Over Time | CDC Dataset Naming | Joining Multiple Datasets | Filtering by Survey Year | Finding Variables | By keyword | By variable name | In loaded data | Complete Example: Blood Pressure by Age Group | Next Steps

Last update: 2026-02-18
Started: 2026-02-18

COVID-19 and the 2019-2020 NHANES Cycle
Overview | What Happened | How This Affects Dataset Naming | Why We Exclude It | CDC Documentation | Future Plans | What to Do in the Meantime

Last update: 2026-02-18
Started: 2026-02-18