dynamics: Create a dynamics object

Description Usage Arguments Details Value Examples

View source: R/dynamics-class.R

Description

A dynamics object is a group of modular functions used modify habitat, population, and demography in a timestep.

Usage

1
2
3
4
5
6
7
8
dynamics(population_dynamics, habitat_dynamics, demography_dynamics,
  order = c("population_dynamics", "habitat_dynamics",
  "demography_dynamics"))

is.dynamics(x)

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

Arguments

population_dynamics

A module to alter the population object in a simulation

habitat_dynamics

A module to alter the habitat object in a simulation

demography_dynamics

A module to alter the habitat object in a simulation

order

The order to apply the dynamics at each timestep in a simulation

x

an object to print or test as a dynamics object

...

further arguments passed to or from other methods

Details

A dynamics object modifies a state object in each timestep of a simulation based on specified habitat, demography, or population dynamics functions.

Value

An object of class dynamics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(steps)
library(raster)

dynamics <- dynamics(population_dynamics(),
                     habitat_dynamics(),
                     demography_dynamics())

# Test if object is of the type 'dynamics'
  
is.dynamics(test_dynamics)

print(test_dynamics)

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