newAgent: Create an agent with a given state

View source: R/RcppExports.R

newAgentR Documentation

Create an agent with a given state

Description

Create an agent with a given state

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.

Value

an external pointer pointing to the agent


ABM documentation built on April 4, 2025, 1:44 a.m.