Skip to contents

sim_template() returns one element per process. This helper joins them: vectors are concatenated, and matrices with replications in columns (as regression_worker() returns) are bound column-wise.

Usage

bind_results(result)

Arguments

result

The list returned by sim_template().

Value

A vector or a matrix covering all replications.

Examples

out <- sim_template(pi_worker, 1234, 100, 1000, 2)
length(bind_results(out))
#> [1] 1000