new.intparam.land {rmetasim}R Documentation

Create a set of integer parameters

Description

Create a set of integer parameters for a Rmetasim landscape.

Usage

  ## must be called AFTER new.landscape.empty()
  rland <- new.intparam.land(rland,h=2,s=1,cg=0,ce=0,totgen=500,maxland=10000)

Arguments

rland skeletion of landscape object, required
h habitats (default=1), the number of different subpopulations within the landscape
s stages (default=1), the number of stages in the life cycle of the organism
cg currentgen (default=0), the current generation the simulation has reached
ce currentepoch (default=0), the current epoch the simulation has reached
totgen totoalgens (default=1000), the total number of generations to simulate
maxland maxlandsize(default=200000), the maxium number of individuals that can exist in the simulation

Examples

  ## Defaults
  exampleland <- new.landscape.empty()
  exampleland <- new.intparam.land(exampleland)
  exampleland$intparam

  ## 2 habitats, 3 stage lifecycle, 1000000 generations, maximum 1000000 individuals
  exampleland <- new.landscape.empty()
  exampleland <- new.intparam.land(exampleland,h=2,s=2,totgen=1000000,maxland=1000000)
  exampleland$intparam

  rm(exampleland)

[Package rmetasim version 1.0.3 Index]