get_enroll_data: Get enrollment data from one specific multiple "enrollees"...

get_enroll_dataR Documentation

Get enrollment data from one specific multiple "enrollees" table

Description

Get enrollment data from one specific multiple "enrollees" table

Usage

get_enroll_data(
  source,
  year,
  enrolid_list,
  collect_n = Inf,
  vars = c("dobyr", "sex"),
  db_con
)

Arguments

source

ccae, mdcr, or medicaid

year

year

enrolid_list

A list of enrolids for which enrollment data will be collected

collect_n

The number of observations to return

vars

Vector of specific variables of interest in the "enrollees" tables (e.g. c("dobyr", "sex"))

db_con

A connection to a database

Value

A tibble with information on each enrolid in enrolid_list. The number of columns in the tibble depends on the number of vars selected


aarmiller/smallDB documentation built on March 29, 2024, 9:37 a.m.