read_samadult_at: Reads NHIS sample adult files for specified survey years

Description Usage Arguments Value Examples

View source: R/read_samadult.R

Description

Reads NHIS sample adult files for specified survey years

Usage

1
2
3
4
5
6
read_samadult_at(
  dir.path = NULL,
  years = NULL,
  lookup.tbl.path = NULL,
  rename = FALSE
)

Arguments

dir.path

Path to the directory(folder) that contains NHIS sample adult files

years

A vector of years

lookup.tbl.path

Path to the variable name look-up file

rename

Rename column names to user specified names

Value

A NHIS dataframe with only the variables specified in the variable name look-up file

Examples

1
2
3
4
5
6
## Not run: 
read_samadult_at(dir.path = "./samadult-files",
                 years = c(2006,2012,2015),
                 lookup.tbl.path = "./samadult-lookup.csv")

## End(Not run)

ShozenD/caresri documentation built on Dec. 18, 2021, 1:07 p.m.