mockPhenotypeR: Function to create a mock cdm reference for mockPhenotypeR

View source: R/mockPhenotypeR.R

mockPhenotypeRR Documentation

Function to create a mock cdm reference for mockPhenotypeR

Description

'mockPhenotypeR()' creates an example dataset that can be used to show how the package works

Usage

mockPhenotypeR(
  nPerson = 100,
  con = DBI::dbConnect(duckdb::duckdb()),
  writeSchema = "main",
  seed = 111
)

Arguments

nPerson

number of people in the cdm.

con

A DBI connection to create the cdm mock object.

writeSchema

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

seed

seed to use when creating the mock data.

Value

cdm object

Examples


library(PhenotypeR)

cdm <- mockPhenotypeR()

cdm


PhenotypeR documentation built on April 3, 2025, 10:46 p.m.