Add importations to the simulation. Without importations there will be no growth so some cases must be imported.

addImportations(
  growthSimulation,
  importDf = tibble(time = 0, import = rate),
  rate = 100
)

Arguments

growthSimulation

- a timeseries with an integer time column.

importDf

- an optional dataframe with 2 columns: "time" and "import" counts.

rate

- if no importDf is specified the rate parameter will define the number of cases on the zero day.

Value

a growth_simulation with an additional import column