read_samadult: Read a single NHIS sample adult file

Description Usage Arguments Value Examples

View source: R/read_samadult.R

Description

Read a single NHIS sample adult file

Usage

1
2
3
4
5
6
read_samadult(
  file.path = NULL,
  year = NULL,
  lookup.tbl.path = NULL,
  rename = FALSE
)

Arguments

file.path

Path to a sample adult file

year

The year of the survey

lookup.tbl.path

The path to a variable name look-up table

rename

Rename specified variables to user defined names

Value

A dataframe with only the specified NHIS variables

Examples

1
2
3
4
## Not run: 
df.nhis <- read_samadult("samadult_2017.csv", year = 2017, lookup.tlb.path = "samadult-lookup.csv")

## End(Not run)

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