Releases: kyleGrealis/nhanesdata
Releases · kyleGrealis/nhanesdata
nhanesdata v0.2.1
CRAN submission candidate (Feb. 18, 2026)
Bug Fixes
- Converted vignettes from Quarto (.qmd) to R Markdown (.Rmd) to fix
vignette build failures on Windows CI.
New Features
- Adding
create_design()function to return survey-weighted design data
for use in downstream analyses. Combines cycles and properly accounts
for weight type (interview, MEC, fasting) and adheres to CDC guidelines
for use with earlier cycles. See CDC Weighting Guidelines
for more information.
nhanesdata v0.2.0
nhanesdata 0.2.0
Released: Feb. 2026
Breaking Changes
- Categorical columns across all datasets are now stored as character with
human-readable labels instead of raw numeric codes. For example, BMX
bmdbmicvalues like2, 3, 4, 1are now"Normal weight",
"Overweight","Obese","Underweight". This affects 95 variables
across 22 datasets.
Bug Fixes
- Fixed data corruption where factor-to-numeric conversion returned internal
level indices instead of actual CDC codes (e.g., codes1, 3, 4were
silently stored as1, 2, 3). - Fixed continuous variables like
ridageyrandindfmpirbeing corrupted
when categorical label mappings were incorrectly applied to them. - Fixed column type clashes when binding survey cycles where a column existed
in some cycles but not others.
New Features
- Cross-cycle label translation: when the CDC codebook is unavailable for a
particular cycle, labels are now carried over from a sibling cycle so all
waves have consistent human-readable values. - Added 5 new datasets:
dxxag,l10,l10am,lab10,lab10am
(71 datasets total). - Added
inst/CITATIONforcitation("nhanesdata")support.
Contributors
- Added Amrit Baral, Natalie Neugaard, Johannes Thrul, and Janardan Devkota
as contributors.