setStates | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.