Learn R Programming

PatientProfiles (version 1.3.1)

mockPatientProfiles: It creates a mock database for testing PatientProfiles package

Description

It creates a mock database for testing PatientProfiles package

Usage

mockPatientProfiles(
  con = NULL,
  writeSchema = NULL,
  numberIndividuals = 10,
  ...,
  seed = NULL
)

Value

A mock cdm_reference object created following user's specifications.

Arguments

con

A DBI connection to create the cdm mock object.

writeSchema

Name of an schema on the same connection with writing permisions.

numberIndividuals

Number of individuals to create in the cdm reference.

...

User self defined tables to put in cdm, it can input as many as the user want.

seed

A number to set the seed. If NULL seed is not used.

Examples

Run this code
# \donttest{
library(PatientProfiles)
library(CDMConnector)

cdm <- mockPatientProfiles()

mockDisconnect(cdm = cdm)
# }

Run the code above in your browser using DataLab