algo3: Generate random zones

Description Usage Arguments Details Value References Examples

Description

algo3 generates a random zoning system. Zones can be output in either raster or vector format.

Usage

1
algo3(x, m, ras = FALSE)

Arguments

x

an object of class Raster or a numeric vector depicting the dimensions of a new raster.

m

a numeric scalar indicating the number of zones to generate.

ras

logical indicating whether output should be in raster or vector format. The default is FALSE.

Details

Implements the algorithm outlined by Openshaw (1977).

Value

algo3 returns either a Raster or SpatialPolygons class object representing a set of randomly generated zones.

References

Openshaw, Stan. 1977. "Algorithm 3: a procedure to generate pseudo-random aggregations of N zones into M regions, where M is less than N." Environment and Planning A 9: 1423-1428.

Examples

1
algo3(x = c(50, 50))

aslez/maup documentation built on May 10, 2019, 2:04 p.m.