nhanes_data_files: List the NHANES data files

View source: R/variables.R

nhanes_data_filesR Documentation

List the NHANES data files

Description

List the NHANES data files

Usage

nhanes_data_files(
  components = "all",
  destination = tempfile(),
  cache = TRUE,
  method = "auto"
)

Arguments

components

one of "all", "demographics", "dietary", "examination", "laboratory", "questionnaire"

destination

destinatino to save the file lists

cache

whether to cache the downloaded file lists so they don't have to be re-downloaded every time

method

download.file method

Value

data frame of NHANES data files available to download

Examples

## Not run: 

# Download a data frame of all the NHANES data files
files <- nhanes_data_files()

# Download a data frame of just the laboratory files
lab_files <- nhanes_data_files(component = "laboratory")


## End(Not run)


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