get_data_hys | R Documentation |
Get HYS microdata from storage.
get_data_hys(
cols = NULL,
year = c(2021),
weight_variable = "wt_grade_kc",
kingco = TRUE,
version = "best",
ar = TRUE
)
cols |
Character vector of length >-1. Identifies which columns should be returned. NULL or NA returns all columns in the analytic dataset.
See |
year |
Numeric vector. Identifies which years of data should be pulled |
weight_variable |
Character vector of length 1. Identifies which weight column |
kingco |
logical. Return dataset for analyses in King County only. The only option |
version |
version of the HYS dataset to pull. Defaults to best. Don't change unless you know what you are doing. |
ar |
logical. Whether to pull from the analytic ready dataset. FALSE will load stage data |
dataset either in data.table (administrative data) or svy_tbl (survey data) for further analysis/tabulation
get_data_hys(cols = NULL, year = c(2016, 2018), weight_variable = 'wt_grade_kc')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.