get_demo returns an abridged National Health and Nutrition Examination Survey (NHANES) demographic data set for a given year.
year combination of data set to retrieve ... must be one of the following:
Object of class
data.frame containing a modified NHANES demographic data set for a specified year. The complete NHANES demographic data set contains several more variables than are necessary for computing HEI scores. In fact, the only variable contained in the returned data set (in addition to an NHANES unique sequence identifier for each participant) is not, strictly speaking, even required itself, but becomes relevant if data sets from multiple separate NHANES iterations are concatenated, specifically:
SDDSRVYR: This variable represents the two-year data release cycle number (e.g. a value of <e2><80><9c>6<e2><80><9d> denotes NHANES 2009<e2><80><93>2010).
1 2 3 4
## Not run: get_demo("2009/2010") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.