polygon.create {RGeostats}R Documentation

Create a Polygon structure

Description

Creates a new Polygon structure

Usage

polygon.create(x, y=NA, polygon=NA)

Arguments

x

Vector containing the coordinates along X of the polygon vertices. If this argument is a data.frame with two columns, the first column gives the first coordinates and the second column gives the second coordinates of the polygon vertices.

y

Vector containing the coordinates along Y of the polygon vertices.

polygon

When an already Polygon is provided, this function adds the new Polyset to the existing Polygon. If the Polygon argument is passed as NA, a new Polygon is created containing a single Polyset.

Details

The dimensions of the arguments 'x' and 'y' must be similar

Value

The newly created polygon-class structure


[Package RGeostats version 11.0.6 Index]