mockDrugUtilisation {DrugUtilisation} | R Documentation |
It creates a mock database for testing DrugUtilisation package
mockDrugUtilisation(
con = NULL,
writeSchema = NULL,
numberIndividuals = 10,
seed = NULL,
...
)
con |
A DBIConnection object to a database. If NULL a new duckdb connection will be used. |
writeSchema |
A schema with writing permissions to copy there the cdm tables. |
numberIndividuals |
Number of individuals in the mock cdm. |
seed |
Seed for the random numbers. If NULL no seed is used. |
... |
Tables to use as basis to create the mock. If some tables are provided they will be used to construct the cdm object. |
A cdm reference with the mock tables
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm