nhanes_load_demography_data: Download NHANES demography files for a specific cycle.

View source: R/import.R

nhanes_load_demography_dataR Documentation

Download NHANES demography files for a specific cycle.

Description

Download NHANES demography files for a specific cycle.

Usage

nhanes_load_demography_data(
  year,
  destination = tempdir(),
  cache = FALSE,
  method = "auto"
)

Arguments

year

NHANES cycle year (e.g. "2011-2012")

destination

directory to download the file to

cache

whether load the file if it already exists on disk

method

download method passed to download.file

Examples


## Not run: 
nhanes_load_demography_data("2011-2012")

## End(Not run)


SilentSpringInstitute/RNHANES documentation built on Feb. 15, 2024, 11:26 p.m.