Skip to contents

An S4 class that holds a RoLE eco-evolutionary process model. A model is first initialized using a set of parameters, then run using those parameters.

Usage

roleModel(params)

Arguments

params

The params to use when the model is run.

Value

A ready-to-run `roleModel`.

Details

See the `roleR_intro` vignette for an example modeling workflow.

Slots

modelSteps

A list of `roleData` objects, one for each snapshot of the model that were recorded as the model ran. For example, the 3rd saved snapshot is accessed at modelSteps[[3]]. Models that are not yet run only have one timestep in modelSteps[[1]].

params

A `roleParams` object containing the params to use when the model is run.

Examples

# Create a model using a default set of params, then run it.
m <- roleModel(roleParams())
m <- runRole(m)