Learn R Programming

ABM (version 0.4.1)

newAgent: Create an agent with a given state

Description

Create an agent with a given state

Value

an external pointer pointing to the agent

Arguments

state

a list giving the initial state of the agent, or NULL (an empty list)

death_time

the death time for the agent, an optional numeric value.

Details

Setting death_time is equivalent to calling the setDeathTime() function.