format_output_simple_model: Format model output from simple as data.frame

View source: R/format_output.R

format_output_simple_modelR Documentation

Format model output from simple as data.frame

Description

Format model output from simple as data.frame

Usage

format_output_simple_model(
  x,
  var_select = NULL,
  reduce_age = TRUE,
  combine_compartments = TRUE,
  date_0 = NULL
)

Arguments

x

squire_simulation object

var_select

Vector of compartment names, e.g. c("S", "R")

reduce_age

Collapse age-dimension

combine_compartments

Collapse compartments of same type together (e.g. E1 and E2 -> E)

date_0

Date of time 0, if specified a date column will be added

Value

Formatted long data.frame


mrc-ide/squire documentation built on Sept. 10, 2022, 1:11 a.m.