gsim: Create an initial data.frame for simulation

Description Usage Arguments Value Examples

View source: R/gsim.R

Description

The gsim() function creates a data.frame with target_rows based on an existing dataset or a net_new solution without an existing dataset

Usage

1
gsim(data = NULL, target_rows = 1000, seed = 12345)

Arguments

data

(optional) base dataset. default is NULL in which case a new data.frame will be created.

target_rows

(optional) . default is set to 1000 rows

seed

(optional) default is 12345. Initial seed

Value

If data is NULL then a new data.frame is created with sequential index. If data is smaller than target_rows, the dataset is expanded with expand_dataset behaviour. If data is larger than random subset is choosen to match target_rows

Examples

1
2
gsim(data = mtcars , target_rows = 20)
gsim(target_rows = 2000)

shambhu112/gsim documentation built on Jan. 21, 2021, 6:20 p.m.