View source: R/output_utilityFunctions.R
getTableHosts | R Documentation |
table.hosts
from a nosoiSim
objectThis function extracts the table.hosts
for the request host-type from a nosoiSim
object.
getTableHosts(nosoi.output, pop = "A")
nosoi.output |
an object of class |
pop |
the host-type to be extracted (either "A" or "B", if not dual-host, then "A") |
Returns a data.table
with the requested data. The table.hosts
(class data.table
) contains informations about each host that has been simulated (one row is one host).
The structure of the table is the following:
Unique identifier for the host, based on user-defined prefix and an integer.
Unique identifier for the host that infected the current one.
(only if structure is present) State or coordinates (in that case inf.in.x and inf.in.y) in which the host was infected.
(only if structure is present) State or coordinates (in that case current.in.x and current.in.y) in which the host is at the end of the simulation.
(only if continuous structure is present) Environmental value (raster cell value) in which the host is at the end of the simulation.
(only if continuous structure is present) Raster cell numeric ID in which the host is at the end of the simulation.
(only if structure is present) Host count in the current state or raster cell (beware, updated only if used).
When did the host enter the simulation (infection time).
When did the host exit the simulation (NA if still active).
Is the host still active at the end of the simulation (TRUE for YES, FALSE for NO)?
The remaining columns are the sampled values for the individual-based parameters (if any) specified by the user.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.