mockDrugUtilisation: 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,
...
)
Value
A cdm reference with the mock tables
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.
Examples
Run this code# \donttest{
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm
# }
Run the code above in your browser using DataLab