Description Usage Arguments Details Value Functions Examples
gapply (grid apply) applies a function to a grid of it's parameters in parallel, optionally for a given number of replications
1 2 3 4 5 |
.f |
function to be evaluated. The function must return a (named) value or (named) vector of values. |
... |
named arguments to |
.reps |
times the function should be evaluated |
.args |
list of extra arguments to |
.mc.cores |
attempts to split function evaluations over given number of cores |
.verbose |
If |
.eval |
If |
.stack |
whether results should be stacked (see |
.paramid |
The index of the row of the argument grid to run.
If |
The attributes of the object include grid
(the grid of parameter values),
time
(elapsed time), and err
(list of errors).
The function application to each combination of meta-parameters (not replications)
are distributed in parallel via mclapply
and will not work in Windows.
Returns results as a data.frame
in long form with the following columns:
... |
Columns corresponding to grid of parameters given in |
|
the replication number |
|
the value of |
Errors are captured using try
, converted to character, and available
using attr(object, "err")
grid_apply
: same as gapply
, but does not simplify results,
leaving results as a list of vectors, lists, or data frames.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.