generateDatabase {bdlp} | R Documentation |
Generates a number of datasets from one metadata scenario
Description
Generates a number of datasets from one metadata scenario
Usage
generateDatabase(
name = NULL,
setnr = NULL,
draws = 1,
seedinfo = list(100, paste(R.version$major, R.version$minor, sep = "."), RNGkind()),
metaseedinfo = list(100, paste(R.version$major, R.version$minor, sep = "."),
RNGkind()),
file = NULL,
seedincrement = 1
)
Arguments
name |
The path to the setup file |
setnr |
The metadata scenario, as taken from the info table |
draws |
The number of datasets that are drawn from the metadata scenario |
seedinfo |
The random number generator seed parameters |
metaseedinfo |
If necessary, a separate set of random number generator parameters for the metadata (e.g. cluster centers) |
file |
A custom file name for the output database. Defaults to the pattern setupname_setnr_seed.db |
seedincrement |
The random number seed will by default increase by 1 for each draw from the base seed given in seedinfo unless specified otherwise here |
Value
An SQLite database that contains the desired number of data sets drawn from a certain metadata scenario
Examples
## Not run:
source(system.file("dangl2014.R", package="bdlp"))
generateDatabase(name="dangl2014.R", setnr=1, draws=10)
unlink("dangl2014_set_1_seed_100.db")
## End(Not run)
[Package bdlp version 0.9-2 Index]