Description Usage Arguments Value Examples
Creates a set of agents from a parameter table
1 | agents_from_param_table(param_table)
|
param_table |
Data frame with one row per agent. Each column will become a named property of the created agents. |
list of agents
1 2 3 4 5 6 7 | init_pop <- tibble::tibble(
id = c(1:50),
x = runif(50, 0, 1),
y = runif(50, 0, 1)
)
new_agents <- agents_from_param_table(init_pop)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.