Generate stochastic sequences of package adoption to help demonstrate Sankey
diagrams. Each simulation begins from current packages and explores
removals and additions until all packages in int have been visited.
Examples
set.seed(1)
simulate(2)
#> # A tibble: 2 × 7
#> id `-1` `0` `1` `2` `3` current
#> <int> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 1 cm cm, itn cm, itn, irs cm, itn, irs, chem cm, itn, … cm, itn
#> 2 2 cm cm, itn cm, itn, vaccine cm, itn, chem, vaccine cm, itn, … cm, itn