setStates {ABM} | R Documentation |
Set the state for each agent in a population
Description
Set the state for each agent in a population
Arguments
population |
an external pointer to a population, for example,
one returned by |
states |
either a list holding the states (one for each agent), or a function |
Details
If states
is a function then it takes a single argument
i
, specifying the index of the agent (starting from 1), and returns
a state.
[Package ABM version 0.4.1 Index]