Learn R Programming

GMSE (version 1.0.0.2)

make_interaction_array: Initialise array of resource and landscape-level interactions.

Description

Initialise array of resource and landscape-level interactions.

Usage

make_interaction_array(
  RESOURCES,
  LAND,
  res_consume = 0.5,
  consume_surv = 0,
  consume_repr = 0,
  times_feeding = 1
)

Arguments

RESOURCES

The resources array produced by the resource function within GMSE

LAND

The landscape array on which interactions between resources and agents occur

res_consume

The proportion of a landscape cell that a resource consumes

consume_surv

The amount that a resource needs to consume to survive a time step

consume_repr

The amount that a resource needs to consume to produce one offspring

times_feeding

The number of times a resource moves to feed on a cell in a time step

Examples

Run this code
# NOT RUN {
Jacobian <- make_interaction_array(RESOURCES = starting_resources, 
LAND = LANDSCAPE_r);
# }

Run the code above in your browser using DataLab