Learn R Programming

RCALI (version 0.3.7)

generPoly: Generate a regular grid of polygons

Description

Generate a regular grid of polygons and optionally write them on a file for input to califlopp

Usage

generPoly(step = 5, np = 10, file = "data", plot = TRUE)

Value

An object of class "listpoly"

Arguments

step

Step of grid, in meter.

np

Number of polygons on each axis.

file

Pathname of the polygons file to be created. If NULL, no file created.

plot

If TRUE, plot of the polygons.

Details

When file is not NULL, a polygons file is created. It is in the format 2 of califlopp and the values separator is tabulate.

See Also

"listpoly-class", plot.listpoly

Examples

Run this code
a <- generPoly(np=3, file=NULL)

Run the code above in your browser using DataLab