cut_forest: Change forested land cover to open invasible

Description Usage Arguments Value

Description

Convert forest to open habitat. The specified pixels have a specified proportion of specified forest.col type converted to open invasible habitat. This function updates the land cover proportions within lc.df. This is a one way, deterministic change with no natural reversion to forest.col. The affected parameters must be updated with a call to cell_agg and to sdd_set_probs(lc.new=id.chg).

Usage

1
cut_forest(id.chg, forest.chg, forest.col, lc.df)

Arguments

id.chg

Dataframe or tibble with cell grid indexes identifying which cells are to change. if not input manually, can be randomly created by cut_assign

forest.chg

Matrix with a column for each forest.col type corresponding with the forest.col columns in lc.df specifying the amount of each category of forest.col to be converted, and a final column TotChg with the total amount converted to open invasible. If not input manually, can be randomly created by cut_assign

forest.col

Vector of forest.col column indexes within lc.df

lc.df

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

Value

List with lc.df and sdd.pr where both are sparse, containing only updated values for the cells with altered land cover.


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