agents_from_param_table: Creates a set of agents from a parameter table

Description Usage Arguments Value Examples

View source: R/agent.R

Description

Creates a set of agents from a parameter table

Usage

1

Arguments

param_table

Data frame with one row per agent. Each column will become a named property of the created agents.

Value

list of agents

Examples

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)

neilcharles/agentSim documentation built on Oct. 31, 2020, 11:23 a.m.