download_nhanes_file: Download an NHANES data file from a given cycle

View source: R/import.R

download_nhanes_fileR Documentation

Download an NHANES data file from a given cycle

Description

Download an NHANES data file from a given cycle

Usage

download_nhanes_file(
  file_name,
  year,
  destination = tempdir(),
  cache = TRUE,
  method = "auto"
)

Arguments

file_name

file name

year

NHANES cycle

destination

directory to download the file into

cache

whether to cache the file

method

download method passed to download.file

Value

path to the downloaded file


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