SimulationComponents: Code components to simulate a landscape

SimulationComponentsR Documentation

Code components to simulate a landscape

Description

These functions can be used to construct custom simulations of landscapes. Each conducts only a single generations worth of change

Usage

   landscape.advance(Rland, seed = -1)
   landscape.carry(Rland, seed = -1)
   landscape.extinct(Rland, seed = -1)
   landscape.reproduce(Rland, seed = -1)
   landscape.survive(Rland, seed = -1)

Arguments

Rland

the Rmetasim landscape object

seed

seed for random number generator

Details

landscape.advance() merely advances the generation counter and selects the new generations demographic conditions if such conditions can vary. The other functions implement carrying capacity, local extinction, reproduction, and survival/growth, respectively. The function landscape.simulate() bundles the functionality of these components into a single function (and executes it slightly faster all within linked C++ code).

See Also

landscape.simulate


stranda/rmetasim documentation built on Aug. 25, 2023, 12:22 p.m.