Description Usage Arguments Value Examples
View source: R/read_samadult.R
Reads NHIS sample adult files for specified survey years
1 2 3 4 5 6 | read_samadult_at(
dir.path = NULL,
years = NULL,
lookup.tbl.path = NULL,
rename = FALSE
)
|
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 |
A NHIS dataframe with only the variables specified in the variable name look-up file
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.