rep_run | R Documentation |
repeat run
rep_run(exp, times = 3, .combine = list, ...)
exp |
A task enclosed in quotes ready to run. |
times |
times of repetition. |
.combine |
function that is used to process the tasks results as they generated. This can be specified as either a function or a non-empty character string naming the function. Specifying 'c' is useful for concatenating the results into a vector, for example. The values 'cbind' and 'rbind' can combine vectors into a matrix. The values '+' and '*' can be used to process numeric data. By default, the results are returned in a list. |
... |
Other arguments from foreach::foreach |
repeat results
rep_run("sum(1:10)") "runif(10)" %>% rep_run(5, .combine = rbind)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.