Description Usage Arguments Value References Examples
get_diet
returns an abridged National Health and Nutrition Examination Survey (NHANES) dietary data set for a given year.
1 | get_diet(year, day)
|
year |
year combination of data set to retrieve ... must be one of the following:
|
day |
identifier for survey day to retrieve ... must be one of the following:
|
Object of class data.frame
containing a modified NHANES dietary data set for a specified year and day. The complete NHANES dietary data set contains several more variables than are necessary for computing HEI scores. The data set returned by this function has been trimmed down to contain (in addition to an NHANES unique sequence identifier for each participant) only the columns of data needed for HEI score calculation, specifically:
TKCAL: Energy (kcal)
TSFAT: Total saturated fatty acids (gm)
TMFAT: Total monounsaturated fatty acids (gm)
TPFAT: Total polyunsaturated fatty acids (gm)
TSODI: Sodium (mg)
TALCO: Alcohol (gm)
https://www.cdc.gov/nchs/nhanes/nhanes_questionnaires.htm
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.