Description Usage Arguments Examples
View source: R/create_landscape.R
Create a set of integer parameters for a Rmetasim landscape.
1 2 3  |   ## must be called AFTER landscape.new.empty()
   landscape.new.intparam(rland,h=1,s=1,cg=0,ce=0,totgen=1000,
                          maxland=200000,xdim=0,ydim=0)
 | 
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. Keeps large simulation from crashing computer  | 
xdim | 
 if habitats are arrayed in rectangle, number of x grid cells  | 
ydim | 
 if habitats are arrayed in rectangle, number of x grid cells  | 
1 2 3 4 5 6 7 8 9 10 11  |   ## Defaults
  exampleland <- landscape.new.empty()
  exampleland <- landscape.new.intparam(exampleland)
  exampleland$intparam
  ## 2 habitats, 3 stage lifecycle, 1000000 generations, maximum 1000000 individuals
  exampleland <- landscape.new.empty()
  exampleland <- landscape.new.intparam(exampleland,h=2,s=2,totgen=1000000,maxland=1000000)
  exampleland$intparam
  rm(exampleland)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.