mockDrugUtilisation {DrugUtilisation} | R Documentation |
It creates a mock database for testing DrugUtilisation package
Description
It creates a mock database for testing DrugUtilisation package
Usage
mockDrugUtilisation(
con = NULL,
writeSchema = NULL,
numberIndividuals = 10,
seed = NULL,
...
)
Arguments
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. |
Value
A cdm reference with the mock tables
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm
[Package DrugUtilisation version 0.7.0 Index]