landscape.simulate: Run a simulation for a single landscape through time

View source: R/runsimulation.R

landscape.simulateR Documentation

Run a simulation for a single landscape through time

Description

Simulate a Rmetasim landscape for a number of generations.

Usage

   landscape.simulate(Rland,numit,seed=-1,compress=FALSE, force=FALSE)

Arguments

Rland

the Rmetasim landscape object

numit

the number of generations/iterations to simulate, note that landscapes will not run past the rland$intparam$totalgens value

seed

The default value of seed uses the seed set in the calling environment. Any other value for seed uses 'set.seed()' to reset the random number generator. landscape.simulate uses the RNG selected by the calling environment.

compress

If true, landscape.simulate executes a survival and carrying capacity step before returning. In demographies with high reproductive potential, this can significantly reduce the size of R objects returned

force

Tries to simulate a landscape even if it fails the 'is.landscape' test. Do not set to TRUE unless you reall know what you are doing

Examples

  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)
  exampleland
  rm(exampleland)

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