mockPerson {omock} | R Documentation |
mockPerson
Description
mockPerson
Usage
mockPerson(
cdm = mockCdmReference(),
nPerson = 10,
birthRange = as.Date(c("1950-01-01", "2000-12-31")),
proportionFemale = 0.5,
seed = 1
)
Arguments
cdm |
Name of the cdm object |
nPerson |
number of mock person to create in person table |
birthRange |
birthday range of the person in person table |
proportionFemale |
proportion of person in the person table are female |
seed |
random seed |
Value
A cdm reference with the mock person table
Examples
library(omock)
cdm <- mockPerson(cdm = mockCdmReference(),nPerson = 10)
cdm$person
[Package omock version 0.2.0 Index]