Learn R Programming

ABM (version 0.4.3)

getState: Get the state of the agent

Description

Get the state of the agent

Value

a list holding the state

Arguments

agent

an external pointer returned by newAgent

Details

If agent is an R6 object, then we should either use agent$schedule, or use schedule(agent$get, event)