nhanes_variables: Load the NHANES comprehensive variable list

Description Usage Arguments Value Examples

View source: R/variables.R

Description

Load the NHANES comprehensive variable list

Usage

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

Arguments

components

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

destination

where to save the variable list

cache

whether to cache the downloaded variable list so it doesn't have to be re-downloaded every time

Helper function for nhanes_variables function

Value

dat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# Download the comprehensive NHANES variable list
variables <- nhanes_variables()

# Download the variable list and cache it in a specific file
variables <- nhanes_variables(destination = "./nhanes_data")


## End(Not run)

RNHANES documentation built on May 29, 2017, 6:05 p.m.