Package: RNHANES 1.1.1

Herb Susmann

RNHANES: Facilitates Analysis of CDC NHANES Data

Tools for downloading and analyzing CDC NHANES data, with a focus on analytical laboratory data.

Authors:Herb Susmann [cre, aut], Silent Spring Institute [cph]

RNHANES_1.1.1.tar.gz
RNHANES_1.1.1.zip(r-4.7)RNHANES_1.1.1.zip(r-4.6)RNHANES_1.1.1.zip(r-4.5)
RNHANES_1.1.1.tgz(r-4.6-any)RNHANES_1.1.1.tgz(r-4.5-any)
RNHANES_1.1.1.tar.gz(r-4.7-any)RNHANES_1.1.1.tar.gz(r-4.6-any)
RNHANES_1.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
RNHANES/json (API)
NEWS

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

Bug tracker:https://github.com/silentspringinstitute/rnhanes/issues

On CRAN:

Conda:

nhanespublichealth

7.28 score 98 stars 98 scripts 39 downloads 1 mentions 14 exports 38 dependencies

Last updated from:aaca45b361. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR333
source / vignettesOK230
linux-release-x86_64ERROR162
macos-release-arm64ERROR155
macos-oldrel-arm64ERROR235
windows-develERROR106
windows-releaseERROR126
windows-oldrelERROR100
wasm-releaseOK114

Exports:nhanes_cycle_yearsnhanes_data_filesnhanes_detection_frequencynhanes_geometric_meannhanes_histnhanes_load_datanhanes_load_demography_datanhanes_quantilenhanes_sample_sizenhanes_searchnhanes_surveynhanes_survey_designnhanes_variablesnhanes_vcov

Dependencies:askpassclicurlDBIdplyrforeigngenericsgluehttrjsonlitelatticelifecyclemagrittrMatrixmimeminqamitoolsnumDerivopensslpillarpkgconfigR6RcppRcppArmadillorlangrvestselectrstringistringrsurveysurvivalsystibbletidyselectutf8vctrswithrxml2

Introduction to RNHANES

Rendered fromintroduction.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2016-09-26
Started: 2016-04-12

Readme and manuals

Help Manual

Help pageTopics
RNHANES simplifies downloading and analyzing NHANES data.RNHANES-package rnhanes-package RNHANES rnhanes
Translates cycle years into the correct demography filename suffix, e.g. '2001-2002' returns 'B'demography_filename
Download an NHANES data file from a given cycledownload_nhanes_file
Returns the NHANES file suffix for the given yearfile_suffix
Download an NHANES description fileload_nhanes_description
Compute quantiles from NHANES weighted survey datanhanes_analyze
List the valid NHANES cycle yearsnhanes_cycle_years
List the NHANES data filesnhanes_data_files
Compute detection frequencies of NHANES datanhanes_detection_frequency
Compute geometric means from NHANES weighted survey datanhanes_geometric_mean
Plot a weighted histogram of an NHANES variablenhanes_hist
Download NHANES data files.nhanes_load_data
Download NHANES demography files for a specific cycle.nhanes_load_demography_data
Compute quantiles from NHANES weighted survey datanhanes_quantile
Compute the sample size of NHANES datanhanes_sample_size
Search the results from nhanes_variables or nhanes_data_filesnhanes_search
Apply a function from the survey package to NHANES datanhanes_survey
Build survey objects for NHANES datanhanes_survey_design
Load the NHANES comprehensive variable listnhanes_variables
Extract variance/covariance matrix from parameters of svymeannhanes_vcov
Processes a file name to make sure it is valid and has the correct suffix and extension File names with an extension (e.g. ".XPT") are not alteredprocess_file_name
Check that the year is in the correct format e.g. '2001-2002' is correct and returns TRUE, '2001' is not correct and returns FALSEvalidate_year