landscape.new.local.demo: Create a Local Demography

Description Usage Arguments Details Examples

Description

Create a local demography for an Rmetasim Landscape object

Usage

1
2
3
  ## must be called AFTER integer, switch, and float params have been created
  ## S, R, and M matricies must be square matricies of size rland$intparam$stages by rland$intparam$stages
  rland <- landscape.new.local.demo(rland,S=Smatrix,R=Rmatrix,M=Mmatrix,k=0)

Arguments

rland

partially created landscape object, required

S

Survivablity matrix for demograpy, required

R

female Reproduction matrix for demography, required

M

Male reporduction matrix for demography, required

k

flag for type of matrix, 0=demgraphy at zero population density, 1=demography at carrying capacity

Details

The local demography objects encapsulate demography within a particular region. Multiple such objects can be defined to account for different demographies across space. The flag, k, can indicate whether the matrices represent demography at zero population growth and at carrying capacity, if density-dependence is modeled

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
  
  exampleS <- matrix(c(0.1, 0, 0.5, 0.3), nrow = 2)
  exampleR <- matrix(c(0, 1.1, 0, 0), nrow = 2)
  exampleM <- matrix(c(0, 0, 0, 1), nrow = 2)
  
  exampleland <- landscape.new.empty()
  exampleland <- landscape.new.intparam(exampleland, s=2)
  exampleland <- landscape.new.floatparam(exampleland)
  exampleland <- landscape.new.switchparam(exampleland)
  exampleland <- landscape.new.local.demo(exampleland,exampleS,exampleR,exampleM)

  exampleland$demography$localdem

  rm(exampleS)
  rm(exampleR)
  rm(exampleM)
  rm(exampleland)

stranda/kernelPop2 documentation built on March 30, 2020, 5:37 a.m.