get_data_birth: Get Birth microdata from storage.

View source: R/get_data.R

get_data_birthR Documentation

Get Birth microdata from storage.

Description

Get Birth microdata from storage.

Usage

get_data_birth(
  cols = NA,
  year = NA,
  kingco = T,
  version = "final",
  mykey = "hhsaw"
)

Arguments

cols

Character vector of length >=1. Identifies which columns should be returned. NA returns all columns in the analytic dataset. See list_dataset_columns for more information on which columns are considered default by dataset.

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'

Value

a single data.table

Examples



 test <- get_data_birth(
            cols = c('chi_year', 'chi_geo_kc', 'chi_sex'),
            year = c(2019),
            kingco = FALSE,
            version = 'final',
            mykey = 'hhsaw')

 head(test)


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.