Description Usage Arguments Value
View source: R/generate_new_infections.R
Potential secondary infections are generated at the time the primary
case was generated. This function "loads" the infections into the simulation
at the correct time. It also modifies the state_df
to account for the
loaded infection.
1 | generate_secondary_infections(state_df, sim_params)
|
state_df |
|
sim_params |
|
A list containing
state_df
- The updated state_df
object for the simulation
sec_infection_sources
- A vector of case_id
s causing the infections.
If a case causes multiple secondary infections, the ID is repeated. For example,
c(1,5,5,7) means case 1 caused 1 infection, case 5 caused 2 infections and case 7
caused 1 infection. If no new secondary infections are generated in this time step,
this value is NULL
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.