Description Usage Arguments Examples
Create an agent set reporter to set agent reporters in 'nl_experiment' or 'nl_set_agent_reports'
1 | agent_set(vars, agents)
|
vars |
A string or vector/list of strings with the variable names of the agent(s). |
agentset |
A string specifying the agent or agentset to be queried. |
1 2 3 4 5 6 7 8 9 | experiment <- nl_experiment(
model_file = "models/Sample models/Networks/Preferential attachment.nlogo",
iterations = 30,
export_view = TRUE,
agents_after = list(
vertices = agent_set(c("who", "xcor", "ycor"), "turtles"),
edges = agent_set(vars = c(e1 = "[who] of end1", e2 ="[who] of end2"), agents = "links")
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.