init_landscape: Create a new landscape object, i.e. a grid for cellular...

Description Usage Arguments Value Examples

View source: R/landscape.R

Description

Create a new landscape object, i.e. a grid for cellular automata processing.

Usage

1
init_landscape(states, cover, width = 50, height = width)

Arguments

states

A character vector containing the potential cell states.

cover

A number vector containing the cover.

width

An integer number.

height

An integer number.

Value

A landscape object of dimensions width x height with random distribution of states, in the relative ratio given in cover.

Examples

1
init_landscape(c("+","0","-"), c(0.5,0.25,0.25))

caspr documentation built on May 2, 2019, 5:25 p.m.