update_list: Update a list of landscape objects.

Description Usage Arguments Value Examples

Description

Update a list of landscape objects.

Usage

1
update_list(list, t_eval, parms)

Arguments

list

A list object of class "landscape_list".

t_eval

An integer number. Gives the number of timesteps to evaluate.

parms

A list of numeric values as specified for caspr::livestock$parms.

Value

Returns a list of landscapes. The function feeds any list of landscape objects into the simulation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
L0 <- init_list(100, runif_range = c(0.6,0.99), width = 25)

p <- list(  
  r = 1.0,  # max. regeneration rate of plants
  b = 0.2,  # environmental quality
  sigma = 0.1, # random annual variation of environmental quality
  f = 0.9,  # local facilitation
  alpha = 0, # water runoff
  K = 0.9, # carrying capacity of the system
  c = 0.2, # local competition
  m = 0.05, # intrinsic mortality of plants (inverse of av. lifespan)
  v = 0.0, # attractant-decoy
  p = 0.9, # associational resistance
  L = 20, # Livestock density
  q = 0, # hill exponent of functional response
  h = 30, # handling time 
  a = 0.3 # attack rate of livestock
  ) 
  
 
workerlist <- c(rep("localhost", times = parallel:::detectCores()-1)) 
cl <- makeSOCKcluster(workerlist)
registerDoSNOW(cl) 
  
L100 <- update_list(L0, 100, p)

stopCluster(cl)

cascade-wp6/socialecological documentation built on May 13, 2019, 1:11 p.m.