getID | R Documentation |
Get the ID of the agent.
agent |
an external pointer returned by newAgent |
Before an agent is added to a population, its id is 0. After it is added, its id is the index in the population (starting from 1).
If agent is an R6 object, then we should either use agent$id
,
or use getID(agent$get)
an integer value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.