View source: R/filterResults.R
filterResults | R Documentation |
Find all results where a specific condition is true.
filterResults(reg, ids, fun, ...)
reg |
[ |
ids |
[ |
fun |
[ |
... |
[any] |
[integer
]. Ids of jobs where fun(job, result)
returns TRUE
.
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123) f = function(x) x^2 batchMap(reg, f, 1:10) submitJobs(reg) waitForJobs(reg) # which square numbers are even: filterResults(reg, fun = function(job, res) res %% 2 == 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.