| addAgent | R Documentation |
add an agent to a population
population |
an external pointer to a population, for example,
one returned by |
agent |
an external pointer to an agent, returned by |
if the agent is an R6 class, we should use agent$get to get
the external pointer. Similarly, if population is an R6 object, then we
should either use population$addAgent() or population$get.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.