Skip to content

Commit f68b961

Browse files
committed
fix chunk on offspring
1 parent ef56979 commit f68b961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

episodes/superspreading-simulate.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ We input an offspring distribution to `{epichains}` by referring to the R functi
215215
Internally, `{epichains}` will draw one random value, given the parameters,
216216
to simulate the number of new infections from an infected individual (onward transmission).
217217

218-
```{r}
218+
```r
219219
# generate one random number given the distribution family and its parameters
220+
# (run this line many times to get different values)
220221
rnbinom(n = 1, mu = mers_offspring["mean"], size = mers_offspring["dispersion"])
221-
# run this line many times to get different values
222222
```
223223

224224
The reference manual in `?rnbinom` tells us our required specific arguments.

0 commit comments

Comments
 (0)