getAgent {ABM}R Documentation

Get the agent at an index in the population

Description

Get the agent at an index in the population

Arguments

population

an external pointer to a population, for example, one returned by newPopulation()

i

the index of the agent, starting from 1.

Value

the agent at index i in the population.


[Package ABM version 0.4.1 Index]