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.
Arguments
- result
The list returned by
sim_template().
Examples
out <- sim_template(pi_worker, 1234, 100, 1000, 2)
length(bind_results(out))
#> [1] 1000