iterate_pop_econ: Implement management and iterate buckthorn for one time step...

Description Usage Arguments Value

View source: R/simulate.R

Description

Run one time step of the simulation, implementing management actions at the sub-pixel parcel level. This is specifically designed for integration with the USDA-NIFA economic decision model, where management actions are taken by individual parcels which may be smaller than the land cover map pixels. The indexing is consequently different than for the other iteration functions.

Usage

1
2
3
iterate_pop_econ(parcel.df, pp.ls, N.0, B.0, g.p, lc.df, sdd, control.p,
  grd_cover.i = NULL, mech_chem.i = NULL, read_write = FALSE,
  path = NULL)

Arguments

parcel.df

Dataframe with index columns ("id", "id.in", "id.pp"), and columns detailing land cover proportions and grid proportions.

pp.ls

List of length ncell where each element i identifies which id.i$id.pp are within pixel i

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 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 List of dataframes (one for forest, one for open), each with a row for each cell implementing manual management,and columns id and mort detailing the cell ID and mortality rate from manual management

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.

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.