get_data_birth | R Documentation |
Get Birth microdata from storage.
get_data_birth(
cols = NA,
year = NA,
kingco = T,
version = "final",
mykey = "hhsaw"
)
cols |
Character vector of length >=1. Identifies which columns should be returned. NA returns all columns in the analytic dataset.
See Default = NA |
year |
Numeric vector. Identifies which year(s) of data should be pulled. Defaults to the most recent year. Default = most recent year only |
kingco |
Logical. Return dataset for analyses where mother's residence is in King County only. Default = T |
version |
Character vector of length 1. Either 'final' or 'stage'. Default = 'final' |
mykey |
Character vector of length 1. Identifies the keyring:: 'service' name that can be used to access the Health & Human Services Analytic Workspace (HHSAW). Default == 'hhsaw' |
a single data.table
test <- get_data_birth(
cols = c('chi_year', 'chi_geo_kc', 'chi_sex'),
year = c(2019),
kingco = FALSE,
version = 'final',
mykey = 'hhsaw')
head(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.