fetchDietaryData: Fetch NHANES dietary data for a given survey cycle.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fetchDietaryData.R

Description

This function pulls various types of supplementary dietary data from the CDC's NHANES survey for a user-provided year.

Usage

1
fetchDietaryData(start.year = "2017", diet.dataset.list = NULL)

Arguments

start.year

The year for which the user desires data. Must not be later than 2017 (the last year currently available). Defaults to "2017".

diet.dataset.list

A character vector containing the names of specific dietary datasets the user would like to analyze. If none are provided, all datasets are returned. Defaults to NULL.

Value

A named list containing the requested dietary datasets.

Author(s)

Jack Leary

See Also

availableDietaryData

Examples

1
fetchDietaryData(start.year = "2017", diet.dataset.list = c("DR1IFF_J", "DR2IFF_J"))

jr-leary7/SurveyQuantReg documentation built on Dec. 21, 2021, 3:14 a.m.