newLineState: Creates a new line to be added to the movement table when...

View source: R/nosoi_tablesManagment.R

newLineStateR Documentation

Creates a new line to be added to the movement table when hosts moves (internal function)

Description

This function creates a new line for the table, The lines are to be bounded with rbindlist.

Usage

newLineState(
  hosts.ID,
  state.pres,
  time.is,
  current.environmental.value = NA,
  current.cell.number.raster = NA
)

Arguments

hosts.ID

unique ID for the new host

state.pres

state in which host currently is

time.is

time in the simulation, when the infection takes place

current.environmental.value

current value of environmental variable (from raster) according to coordinates in current.in.

current.cell.number.raster

unique number of the raster cell where the host is

Value

a list with the new line to add.


nosoi documentation built on May 29, 2024, 9 a.m.