resource: Resource model

Description Usage Arguments Value Examples

View source: R/resource.R

Description

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

Usage

1
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

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

## End(Not run)

GMSE documentation built on Aug. 2, 2021, 5:07 p.m.