polygon.create {RGeostats} | R Documentation |
Creates a new Polygon structure
polygon.create(x, y=NA, zmin=NA, zmax=NA, polygon=NA)
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. |
zmin |
Lower bound of the polyset along the Z-axis or NA |
zmax |
Upper bound of the polyset along the Z-axis or NA |
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. |
The dimensions of the arguments 'x' and 'y' must be similar.
When the array 'x' (and 'y') present some 'NA' values, each continuous set of defined values correspond to a PolySet. The resulting Polygon is constituted of the group of PolySets.
The newly created polygon-class
structure