events | R Documentation |
SimInf_model
objectExtract the scheduled events from a SimInf_model
object.
events(object, ...)
## S4 method for signature 'SimInf_model'
events(object, ...)
object |
The |
... |
Additional arguments affecting the generated events. |
SimInf_events
object.
## Create an SIR model that includes scheduled events.
model <- SIR(u0 = u0_SIR(),
tspan = 1:(4 * 365),
events = events_SIR(),
beta = 0.16,
gamma = 0.077)
## Extract the scheduled events from the model and display summary
summary(events(model))
## Extract the scheduled events from the model and plot them
plot(events(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.