setStates: Set the state for each agent in a population

View source: R/RcppExports.R

setStatesR Documentation

Set the state for each agent in a population

Description

Set the state for each agent in a population

Arguments

population

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

states

either a list holding the states (one for each agent), or a function

Details

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.


ABM documentation built on April 4, 2025, 1:44 a.m.