resource: Resource model

View source: R/resource.R

resourceR Documentation

Resource model

Description

A population model of resource (including population) dynamics for a single time step.

Usage

resource(RESOURCES = NULL, LAND = NULL, PARAS = NULL, model = "IBM")

Arguments

RESOURCES

The resources array produced by the resource function within GMSE

LAND

The landscape array on which interactions between resources and agents occur

PARAS

The vector of parameters that hold global and dynamic parameter values used by GMSE

model

The type of model being applied (Currently only individual-based – i.e., 'agent-based' – models are allowed)

Value

The resource function outputs an R list that includes three separate arrays, including (1) an new RESOURCES array, (2) a new LAND array, (3) a new PARAS array, each of which might be affected by the user function. The new arrays can then be read back into the broader GMSE function, thereby affecting the input into the observation, management, and user models.

Examples

## Not run: 
RESOURCE_NEW <- resource(RESOURCES = RESOURCES, LAND = LANDSCAPE_r, 
PARAS = paras, model = "IBM");

## End(Not run)

GMSE documentation built on June 16, 2022, 9:05 a.m.