Skip to content

Commit 5e6f5fa

Browse files
committed
fix after automatic styler
1 parent 0f51dc9 commit 5e6f5fa

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

episodes/superspreading-simulate.Rmd

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,16 @@ The code chunk below
460460

461461
```r
462462
# 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+
) %>%
470473
purrr::list_rbind()
471474
# pseudo code: do not run.
472475
```

0 commit comments

Comments
 (0)