get_data | R Documentation |
Simple front-end for pulling in standard APDE data
get_data(dataset, cols = NULL, year = 2021, ...)
dataset |
Character vector of length 1. Identifies the dataset to be
fetched. Use |
cols |
Character vector of length >=1. Identifies which columns should
be returned. NULL returns all columns in the analytic dataset. See
|
year |
Numeric vector. Identifies which year(s) of data should be pulled |
... |
Additional named arguments based on the specific dataset. To see
what these options should be, do |
Typically a data.table (adminstrative data) or
dtsurvey
object (survey data) for further analysis.
When requesting HRA or Region data from the BRFSS dataset, it will return an
imputationList
comprised of
survey-weighted dtsurvey
objects.
https://github.com/PHSKC-APDE/rads/wiki/get_data
test <- get_data(
dataset = 'death',
cols = c('chi_year', 'chi_sex'),
year = c(2021))
head(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.