setDeathTime | R Documentation |
set the time of death for an agent
agent |
an external pointer returned by |
time |
the time of death, a numeric value |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.