addRoute {DrugUtilisation} | R Documentation |
add route column to a table containing drug_exposure information
Description
add route column to a table containing drug_exposure information
Usage
addRoute(drugTable, cdm = attr(drugTable, "cdm_reference"))
Arguments
drugTable |
Table in the cdm that must contain drug_concept_id |
cdm |
'cdm' object created with CDMConnector::cdm_from_con(). It must must contain 'concept_relationship' table. |
Value
It adds route to the current table
Examples
library(DrugUtilisation)
library(dplyr)
cdm <- mockDrugUtilisation()
cdm[["drug_exposure"]] %>%
addRoute()
[Package DrugUtilisation version 0.6.0 Index]