trt_assign: Assign landowner treatments

Description Usage Arguments Value

View source: R/fn_management.R

Description

Assign pixels to the specified buckthorn management treatment. Assigned cells either overwrite the cells treated in the previous time step or are appended.

Usage

1
2
trt_assign(id.i, ncell = NULL, assign_i = NULL, pTrt, trt.eff,
  addOwners = FALSE, trt.m1 = NULL)

Arguments

id.i

Tibble matching cell IDs. id indexes on the entire grid while id.in indexes only inbound cells

ncell

NULL Number of inbound grid cells. Required if cell IDs are not supplied via assign_i

assign_i

NULL Vector of inbound cell IDs to treat. If NULL, then ncell IDs are sampled randomly for treatments

pTrt

Proportion of inbound grid cells to be treated. If add != NULL, then this is appended to the cells treated in the previous time step.

trt.eff

Named vector with effects of each treatment. These names are sampled and assigned to cells

addOwners

Logical denoting whether to append new treated cells to the previous time step. If TRUE, then trt.m1 must be provided

trt.m1

Tibble with grid id and treatment type from time t - 1, either empty or generated with trt_assign in the previous time step.

Value

Tibble with grid id and treatment type


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