On the transmissibility template, there's a section (growth rate and R) where incidence2 is used to generate daily incidence data, while also removing latest data points, defined by params$incomplete_days
There seem to be two chunks of code doing the same thing, one using some functionality from i2extras:
On the transmissibility template, there's a section (growth rate and R) where incidence2 is used to generate daily incidence data, while also removing latest data points, defined by
params$incomplete_days
There seem to be two chunks of code doing the same thing, one using some functionality from
i2extras
:https://github.com/epiverse-trace/episoap/blob/a48b6a9750aed9cee734f3154fddf0daa3570bea/inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd#L443
Is this correct? could we get rid of the first chunk of code since the object i_recent is not subsequently used?