init_list: Initialize a list of random landscape objects

Description Usage Arguments Value Examples

Description

Initialize a list of random landscape objects

Usage

1
2
init_list(n, cover = NULL, width = 200, height = width,
  runif_range = c(0, 1))

Arguments

n

An integer number. Number of landscape objects to generate.

cover

A single numeric value. The average vegetation cover of the landscape. Defaults to NULL, which calls a random number generator drawing initial cover from within the range given in runif_range.

width

An integer number. The width of the lattice to generate. Defaults to 200.

height

An integer number. defaults to the same value as width to produce square landscape objects.

runif_range

A numeric vector of length two. Gives the lower and upper boundary of the random number generator for initial cover.

Value

A list of n landscape objects. The output object is of class "landscape_list", which can be processed by the functions list_update() and summary().

Examples

1
L0 <- init_list(100, runif_range = c(0.6,0.99), width = 25)

cascade-wp6/socialecological documentation built on May 13, 2019, 1:11 p.m.