gather_rx_data: Return information for a specific list of rx codes over...

Description Usage Arguments Value

Description

Return information for a specific list of rx codes over multiple core tables (in parallel)

Usage

1
2
3
4
5
6
7
8
gather_rx_data(
  collect_tab = collect_table(),
  ndc_codes,
  rx_vars = c("enrolid", "ndcnum", "svcdate"),
  db_path,
  collect_n = Inf,
  num_cores = NULL
)

Arguments

collect_tab

A tibble with the specific setting (i.e. inpatient or outpatient), source (i.e. ccae or mdcr), and year to access. Default is all possible combinations of setting, source, and year

ndc_codes

The rx codes of interest

rx_vars

Path to the database

collect_n

The number of observations to return

num_cores

The number of worker cores to use. If not specified will determined the number of cores based on the which ever is the smallest value between number of rows in for collect_tab or detected number of cores - 1

proc_vars

List of variables to return

Value

A tibble with cpt code of interest for the specified list of variables


aarmiller/delayDX documentation built on July 11, 2021, 4:01 p.m.