nhanes | R Documentation |
Use to download NHANES data tables that are in SAS format.
nhanes(nh_table, includelabels = FALSE)
nh_table |
The name of the specific table to retrieve. |
includelabels |
If TRUE, then include SAS labels as variable attribute (default = FALSE). |
Downloads a table from the NHANES website as is, i.e. in its entirety with no modification or cleansing. NHANES tables are stored in SAS '.XPT' format but are imported as a data frame. Function nhanes cannot be used to import limited access data.
The table is returned as a data frame.
nhanes('BPX_E')
nhanes('FOLATE_F', includelabels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.