iterate_pop: Implement management and iterate buckthorn populations for...

Description Usage Arguments Value

View source: R/simulate.R

Description

Run one time step of the simulation, possibly implementing management actions

Usage

1
2
3
iterate_pop(ngrid, ncell, N.0 = NULL, B.0 = NULL, g.p, lc.df, sdd,
  control.p = NULL, grd_cover.i = NULL, mech_chem.i = NULL,
  read_write = FALSE, path = NULL, p.trt_OpnOnly = FALSE)

Arguments

ngrid

Number of grid cells in entire map

ncell

Number of inbound grid cells

N.0

Array with initial population sizes, either returned from a previous iteration or read from a stored .rds file in path

B.0

Vector of initial seed bank abundances, either returned from a previous iteration or read from a stored .rds file in path

g.p

Named list of global parameters set with set_g_p

lc.df

Dataframe or tibble with xy coords, land cover proportions, and cell id info

sdd

Output with short distance dispersal neighborhoods created by sdd_set_probs

control.p

NULL NULL or named list of buckthorn control treatment parameters set with set_control_p

grd_cover.i

NULL Dataframe with a row for each cell implementing ground cover management, and columns id and Trt detailing the cell ID and ground cover treatment ("Cov", "Com", "Lit" for ground cover crop, compaction, or litter, respectively).

mech_chem.i

NULL Dataframe with a row for each cell implementing manual management of adults, and columns id and Trt detailing the cell ID and manual treatment ("M", "C", "MC" for mechanical, chemical, or mechanical and chemical, respectively).

read_write

FALSE Read and write N and B

path

NULL Directory for stored output. Overwrites files (path/N.rds, path/B.rds) each iteration.

p.trt_OpnOnly

FALSE Should ground cover treatments only apply to Open canopy land cover types?

Value

Array N of abundances for each cell and age group, and vector B of seed bank abundances.


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.