number_of_rows {DataFakeR} | R Documentation |
Methods for extracting number of target rows in simulation
Description
Each method returns function of list of tables.
The value of such function is named list being mapping between tables
(names of list) and target number of rows (values of list).
Such methods can be passed as nrows
parameter of opt_default_table.
Usage
nrows_simul_constant(n, force = FALSE)
nrows_simul_ratio(ratio, total, force = FALSE)
Arguments
n |
Default number of rows for each table when not defined in configuration file. |
force |
Should specified parameters overwrite related configuration parameters? |
ratio , total |
The parameters multiplications results with defining target number of rows for simulated table. See details section. |
Details
Currently supported methods are:
nrows_simul_constant Returns
n
rows for each table when not defined in YAML parameternrows
nrows_simul_ratio Returns
nrows * ratio
whennrows
defined as YAML parameter and is integer. Returnsnrows
whennrows
defined as YAML parameter and id fraction, Returnsn * ratio
otherwise.