pull_rx_encounters | R Documentation |
This function pulls columns from a specified table
pull_rx_encounters(
years,
medicaid_years,
ndc_codes,
vars = c("enrolid", "ndcnum", "svcdate"),
num_to_collect = 10,
cluster_size = 20,
db_path = "/Shared/Statepi_Marketscan/databases/Truven/"
)
years |
vector of years to collect. Note: if no argument is provided all years will be selected |
medicaid_years |
years of medicaid data to collect for |
ndc_codes |
ndc codes to pull |
vars |
vector of variables to collect |
num_to_collect |
the number of variables to collect |
cluster_size |
size of cluster to create for pulling data |
db_path |
path to Truven databases |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.