Learn R Programming

simstudy (version 0.1.1)

genData: Calling function to simulate data

Description

Calling function to simulate data

Usage

genData(n, dtDefs = NULL, id = "id")

Arguments

n
the number of observations required in the data set.
dtDefs
name of definitions data.table/data.frame. If no definitions are provided a data set with ids only is generated.
id
The string defining the id of the record

Value

A data.table that contains the simulated data.