setDeathTime {ABM} | R Documentation |
set the time of death for an agent
Description
set the time of death for an agent
Arguments
agent |
an external pointer returned by |
time |
the time of death, a numeric value |
Details
If agent is an R6 object, then we should use either agent$leave() or leave(agent$get)
At the time of death, the agent is removed from the simulation. Calling it multiple times causes the agent to die at the earliest time.
[Package ABM version 0.4.1 Index]