Description Usage Arguments Details Value Examples
This function creates the cartesian product of the input vectors that are supplied to it. The list can then be used within the parallel package's parLapply function for doing batch simulations.
1 | parallel_inputs(..., list = TRUE)
|
... |
collection of input parameter vectors |
list |
logical. return as list (otherwise a matrix) |
If you use variable names in the funtion call then the returning matrix or list will have the same variables names as column names. This can be useful for data management when doing postprocessing.
list or matrix of cartesian product of inputs
1 | parallel_inputs(alpha=1:10,beta=2:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.