batchMap {BatchJobs} | R Documentation |
Maps a function over lists or vectors, adding jobs to a registry.
Description
You can then submit these jobs to the batch system.
Usage
batchMap(reg, fun, ..., more.args = list(), use.names = FALSE)
Arguments
reg |
[ |
fun |
[ |
... |
[any] |
more.args |
[ |
use.names |
[ |
Value
Vector of type integer
with job ids.
Examples
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123)
f = function(x) x^2
batchMap(reg, f, 1:10)
print(reg)
[Package BatchJobs version 1.9 Index]