View source: R/getInfections.R
getInfections.SEIRVModel | R Documentation |
Gets the total infections from the given model
## S3 method for class 'SEIRVModel' getInfections(model, byGroup = TRUE, asRate = FALSE, symptomatic = FALSE, fractionSymptomatic)
model |
The model from which to get the data |
byGroup |
Whether or not to return data by population group; defaults to TRUE |
asRate |
Whether to return results as a rate (fraction of population) or else a number; defaults to FALSE |
symptomatic |
Whether or not to only report symptomatic infections; defaults to FALSE |
fractionSymptomatic |
The fraction of cases that are symptomatic; must be specified if symptomatic = TRUE |
A vector of infections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.