agent_set: Create an agent set reporter

Description Usage Arguments Examples

Description

Create an agent set reporter to set agent reporters in 'nl_experiment' or 'nl_set_agent_reports'

Usage

1
agent_set(vars, agents)

Arguments

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.

Examples

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")
  )
)

bergant/nlexperiment documentation built on May 12, 2019, 3:05 p.m.