nhanes_data_files: List the NHANES data files

Description Usage Arguments Value Examples

Description

List the NHANES data files

Usage

1
2
nhanes_data_files(components = "all", destination = tempfile(),
  cache = TRUE)

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

Value

data frame of NHANES data files available to download

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

RNHANES documentation built on May 2, 2019, 5:08 a.m.