File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -460,13 +460,16 @@ The code chunk below
460
460
461
461
``` r
462
462
# steps:
463
- # seq_len() creates a vector with sequence of numbers (simulation IDs from 1 to 1000) and
464
- # function(sim) iterates {epichains} to each simulation ID number, then
465
- # dplyr::mutate() adds a column to the <epichains> output with the simulation ID number.
466
- # purrr::list_rbind() combines all the list class outputs (for each simulation ID) into a single data frame.
467
- purrr :: map(.x = seq_len(number_simulations ), .f = function (sim ) {
468
- epichains :: simulate_chains(... ) %> % dplyr :: mutate(simulation_id = sim )
469
- }) %> %
463
+ # - seq_len() creates a vector with sequence of numbers (simulation IDs from 1 to 1000) and
464
+ # - function(sim) iterates {epichains} to each simulation ID number, then
465
+ # - dplyr::mutate() adds a column to the <epichains> output with the simulation ID number.
466
+ # - purrr::list_rbind() combines all the list class outputs (for each simulation ID) into a single data frame.
467
+ purrr :: map(
468
+ .x = seq_len(number_simulations ),
469
+ .f = function (sim ) {
470
+ epichains :: simulate_chains(... ) %> % dplyr :: mutate(simulation_id = sim )
471
+ }
472
+ ) %> %
470
473
purrr :: list_rbind()
471
474
# pseudo code: do not run.
472
475
```
You can’t perform that action at this time.
0 commit comments