nosoi (version 1.0.0)

getCumulative: Gets the cumulative number of infected hosts for the full length of the simulation

Description

This function computes from the output of a nosoiSim simulation the cumulative count of infected hosts at each time step of the simulation. The output is a data.table.

Usage

getCumulative(nosoi.output)

Arguments

nosoi.output

Output of a nosoi simulation (object of class nosoiSim).

Value

The output is a data.table with the following structure:

t

Time-step (integer).

Count

Cumulative number of infected hosts at given time-step.

type

Host-type, identified by its user-defined prefix.

See Also

summary.nosoiSim