View source: R/pull_tables_get.R
get_rx_data | R Documentation |
This function collects records that correspond to a set of NDC codes
get_rx_data(source, year, ndc_codes, rx_vars = NULL, db_con, collect_n = Inf)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.