repeat: repeat run

rep_runR Documentation

repeat run

Description

repeat run

Usage

rep_run(exp, times = 3, .combine = list, ...)

Arguments

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

Value

repeat results

Examples

rep_run("sum(1:10)")
"runif(10)" %>% rep_run(5, .combine = rbind)

yanpd01/yyeasy documentation built on Dec. 1, 2022, 10:58 p.m.