get_rx_data: Get RX visits for a set of NDC codes

View source: R/pull_tables_get.R

get_rx_dataR Documentation

Get RX visits for a set of NDC codes

Description

This function collects records that correspond to a set of NDC codes

Usage

get_rx_data(source, year, ndc_codes, rx_vars = NULL, db_con, collect_n = Inf)

Arguments

source

ccae or mdcr

year

year (as integer value)

ndc_codes

a vector of ndc codes to lookup

rx_vars

variables to collect from the rx table. If no variable names are provided all variables in the rx table are returned. Default is rx_vars = NULL

db_con

a connection to a database,

collect_n

the number of rows to collect


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