get_collapse_enrollment: Get collapsed enrollment data from one specific multiple...

get_collapse_enrollmentR Documentation

Get collapsed enrollment data from one specific multiple "enrollment_detail" table

Description

Get collapsed enrollment data from one specific multiple "enrollment_detail" table

Usage

get_collapse_enrollment(
  source,
  year,
  enrolid_list,
  collect_n = Inf,
  vars = c("egeoloc", "msa", "plantyp", "indstry"),
  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("egeoloc", "msa", "plantyp" ,"indstry"))

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.