Description Usage Arguments Details Value Examples
View source: R/fortify-aggregate-epimodel-dcm.R
Take external aggregate data and put it in a format used in this package
| 1 2 | ## S3 method for class 'dcm'
fortify_aggregate(data, states, package_source = NULL)
 | 
| data | output from external source package. See details | 
| states | names of states we want aggregate totals of at each time | 
| package_source | optional argument to include the package from which the output is derived from, which helps with the fortify function when outputs are of generic classes such as list or data.frame | 
This function converts external data sources (we currently support output from the EpiModel and pomp R packages), which is already aggregated and puts it in a format that can be used by our exploring functions.
a data frame with the following columns
time
columns X0, ..., X_K. which are numeric
| 1 2 3 | ## For dcm
out <- fortify_aggregate(EpiModel_det)
head(out)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.