View source: R/generateTestTables.R
makeTbl | R Documentation |
Generate a Data Table
makeTbl(
tblName,
prevTbls = list(),
rows = 4,
propSamp = 0.5,
selMeth = "CENSUS",
stratums = c("U"),
mean = 5
)
tblName |
Name of the table |
prevTbls |
list of data.tables upstream of the generated table. Defaults to empty list |
rows |
numeric number of rows per parent record. Defaults to 4. |
propSamp |
numeric proportion of how many of total are sampled. This is ignored for "CENSUS". Defaults to 0.5 |
selMeth |
character selection method used. Defaults to "CENSUS". Others like SRSWR or SRSSWOR can be used as well |
stratums |
character vector of the stratum names to be created. Defaults to c("U"), meaning not stratified. |
mean |
numeric the expected mean of the target variable.
The variable is created using |
a data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.