Learn R Programming

nhanesA (version 0.6.5.3)

nhanes: Download an NHANES table and return as a data frame.

Description

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

Usage

nhanes(nh_table)

Arguments

nh_table

The name of the specific table to retrieve.

Value

The table is returned as a data frame.

Details

Downloads a table from the NHANES website in its entirety. NHANES tables are stored in SAS '.XPT' format. Function nhanes cannot be used to import limited access data.

Examples

Run this code
# NOT RUN {
nhanes('BPX_E')
nhanes('FOLATE_F')
# }

Run the code above in your browser using DataLab