do.env.change: Implement environmental change

Description Usage Arguments

Description

Make environmental changes to a landscape layer according to a set of change instructions. The instructions are in the my.env input, which contains the following elements "env.change.type", "env.change.mag", and "cond.lyr". "env.change.type" contains the type of change to take place, "env.change.mag" contains details on the magnitude of those changes, and "cond.lyr" contains information on what other layers might affect the change. The change types depend on whether or not another layer is being used to inform the change process (if so, it is a conditional landscape element). See env.change.type for more details.

Usage

1
2
3
do.env.change(my.env, ev, landscape, landscape.identifiers, p, run.path = NA,
  env.lbl = NA, s.lbl = NA, landscape.dir = NA, lnd.lbl = NA,
  change.count = NA)

Arguments

my.env

A dataframe containing instructions for how the environment is to change. See env.file for details.

ev

An indicator variable indicating which landscape element is being modified

landscape

A list of environmental layers

landscape.identifiers

A list of identifiers for the environmental layers

p

The number of cells in the landscape

run.path

The path for this model run (only applicable if c.type == "from.file")

env.lbl

A vector containing each environmental layer name in order (only applicable if c.type == "from.file")

s.lbl

A label for the scenario being considered(only applicable if c.type == "from.file")

landscape.dir

The directory containing the landscape layers for when changes are read in from file

lnd.lbl

A scenario specific label identifying the landscape layers to be used.

change.count

An indicator for which environmental change is being used. Note that this will refer to the change PREVIOUS to the current change, as it is updated at the END of the change process. (only applicable if c.type == "from.file")


akeyel/spatialdemography documentation built on May 12, 2019, 4:43 a.m.