epiverse-trace / epichains

Methods for simulating and analysing the sizes and lengths of infectious disease transmission chains from branching process models
https://epiverse-trace.github.io/epichains/
Other
6 stars 2 forks source link

`rborel()` must return `numeric` not `epichains_summary` #191

Closed jamesmbaazam closed 7 months ago

jamesmbaazam commented 9 months ago

rborel() currently returns <epichains_summary> objects because it uses simulate_summary() under the hood. The returned object must be numeric to be in line with other similar functions.

library(epichains)
out <- rborel(2, 0.9)
class(out)
#> [1] "epichains_summary" "numeric"
Created on 2024-01-26 with [reprex v2.1.0](https://reprex.tidyverse.org/)