get_agent_distribution: Summarise Kleptomove output.

View source: R/fun_weight_evo.R

get_agent_distributionR Documentation

Summarise Kleptomove output.

Description

A function to get the per-generation per-timestep occupancy per cell.

Usage

get_agent_distribution(
  data_folder,
  which_gen = seq(991, 998, 1),
  n_time = 200,
  capacity_matrix,
  layers = c("items", "foragers", "klepts", "klepts_intake", "foragers_intake")
)

Arguments

data_folder

Which data folder to summarise. Data folders should contain the results of ONE replicate of ONE parameter combination.

which_gen

Which generations to look for. Defaults to 991 – 998.

n_time

The timesteps per generation.

capacity_matrix

The capacity matrix.

layers

Which layers to read in. Defaults to all layers.

Value

A data.table of the per-capacity, per-timestep, per-generation values (mean, median, standard deviation) of each layer.


pratikunterwegs/klepto-move-evol documentation built on March 20, 2023, 3:35 p.m.