Generates a named list of data tables that follow the structure of RDBESDataObject. The tables only have columns required for testing The generate tables
Usage
generateTestTbls(tblNames, prevTbls = list(), ...)Arguments
- tblNames
character vector of table names to be created
- prevTbls
list of data.tables upstream of the generated table. Defaults to empty list
- ...
Arguments passed on to
makeTbltblNameName of the table
rowsnumeric number of rows per parent record. Defaults to 4.
propSampnumeric proportion of how many of total are sampled. This is ignored for "CENSUS". Defaults to 0.5
selMethcharacter selection method used. Defaults to "CENSUS". Others like SRSWR or SRSSWOR can be used as well
stratumscharacter vector of the stratum names to be created. Defaults to c("U"), meaning not stratified.
meannumeric the expected mean of the target variable. The variable is created using
rnormand saved under column ending with "y". Defaults to 5.
Examples
if (FALSE) { # \dontrun{
generateTestTbls(c("A", "B", "C"), selMeth = "SRSWOR")
generateTestTbls(LETTERS[1:5]) # makes 5 tables with method CENSUS
} # }