habitat_dynamics: Modify the habitat in a state object.

Description Usage Arguments Details Value Examples

View source: R/habitat_dynamics-class.R

Description

A habitat dynamics object is used to modify habitat suitability (or carrying capacity) of a landscape in space and time - for example, by fire or intentional habitat modification.

Usage

1
2
3
4
5
6
habitat_dynamics(...)

is.habitat_dynamics(x)

## S3 method for class 'habitat_dynamics'
print(x, ...)

Arguments

...

Functions that operate on a state object to change habitat at specified timesteps. User may enter a custom function or select a pre-defined module - see examples.

x

an habitat_dynamics object to print or test.

Details

The build_habitat_dynamics is a sub-component of a dynamics object and is executed in each timestep of a simulation. Note, some dynamics functions can be executed at non-regular intervals (i.e. only timesteps explicitly defined by the user). The build_habitat_dynamics function is used to construct a habitat dynamics object consisting of several habitat dynamics functions and their associated parameters. These functions specify how the habitat in the state object will be modified throughout a simulation.

Value

An object of class habitat_dynamics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(steps)
library(raster)

# Select existing habitat functions to be run on the demography
# in a simulation and specify input parameters: 
fires <- disturbance_fires(habitat_suitability = egk_hab,
                           disturbance_layers = egk_dist,
                           effect_time = 3)

# Construct a habitat dynamics object
hab_dynamics <- habitat_dynamics(fires)

# Test if object is of the type 'habitat dynamics'
is.habitat_dynamics(test_hab_dynamics)

# Print details about the 'habitat_dynamics' object
print(test_hab_dynamics)

skiptoniam/dlmpr documentation built on Sept. 26, 2018, 3:11 p.m.