Download an NHANES table and return as a data frame.

Share:

Description

Use to download NHANES data tables that are in SAS format.

Usage

1
nhanes(nh_table)

Arguments

nh_table

The name of the specific table to retrieve.

Details

Downloads a table from the NHANES website in its entirety. NHANES tables are stored in SAS '.XPT' format. Function nhanes uses sasxport.get from package Hmisc to retrieve the data.

Value

The table is returned as a data frame.

Examples

1
2
nhanes('BPX_E')
nhanes('FOLATE_F')