cut_assign: Assign cells to convert a proportion of forest.col to open...

Description Usage Arguments Value

View source: R/fn_management.R

Description

Assign a specified number of random cells to have their forest.col habitat cleared by a random proportion.

Usage

1
cut_assign(pChg, ncell = NULL, assign_i = NULL, lc.df, forest.col)

Arguments

pChg

Proportion of inbound cells to cut

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

lc.df

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

forest.col

Vector of forest.col column indexes within lc.df

Value

Tibble id.chg with grid and inbound indexes of cells with land cover change and matrix mx with the change in each forest.col category and the total change to be added to open habitat


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