Available NHANES Datasets

#| label: setup
#| include: false

library(dplyr)
library(reactable)

knitr::opts_chunk$set(
  collapse = TRUE,
  eval = FALSE,
  comment = "#>"
)

config <- yaml::read_yaml(
  system.file("extdata", "datasets.yml", package = "nhanesdata")
)

catalog <- do.call(rbind, lapply(config$datasets, function(x) {
  data.frame(
    Dataset = toupper(x$name),
    Description = x$description,
    Category = tools::toTitleCase(x$category),
    stringsAsFactors = FALSE
  )
}))

Available Datasets

This package provides r nrow(catalog) NHANES datasets, automatically updated quarterly with data from 1999-2023 (excluding the 2019-2020 cycle).

Quick Start

library(nhanesdata)

# Load demographics data
demo <- read_nhanes('demo')

# Search for variables
term_search('blood pressure')

Categories

Questionnaire/Interview Tables - Self-reported data from participant interviews

Examination Tables - Physical measurements and laboratory results

#| label: reactable-of-datasets
#| echo: false
#| eval: true

catalog |>
  arrange(Dataset) |>
  reactable::reactable(
    searchable = TRUE
  )

Notes

For detailed variable information, use term_search() or visit the CDC NHANES website.

Warning: CDC may change data periodically. The data was aggregated as best as possible to reconcile variable types that changed across cycles. ALWAYS reference the CDC documentation with nhanesdata::get_url(dataset)!

See get_url() documentation.



Try the nhanesdata package in your browser

Any scripts or data that you put into this service are public.

nhanesdata documentation built on March 1, 2026, 1:06 a.m.