Description Usage Arguments Details Value
View source: R/fortify-aggregate-pomp-list.R
Takes in data from the R pomp package where the output is a data frame and puts it in SIR format for EpiCompare.
1 2 | ## S3 method for class 'pomp_list'
fortify_aggregate(data, states = c("S", "I", "R"), package_source = NULL)
|
data |
Output from a pomp simulation where the output is a data frame,
|
states |
vector of state names. These are strings. |
package_source |
optional package name |
The default variables that are retained are SIR, but can be modified
with the states
argument. If codestates = NULL, we will attempt
to find all single letter names in POMP and output those. This is an internal function.
data frame with the following columns
the time
simulation number (factor variable) (optional column)
where k = 0, ..., K
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.