setStates {ABM} | R Documentation |
Set the state for each agent in a population
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 |
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.