polygon.inside {RGeostats}R Documentation

Polygonal selection

Description

Cheks if a set of points belong to a Polygon or not

Usage

polygon.inside(polygon, x, y)

Arguments

polygon

The polygon-class which must be used to test if a sample is selected as it lies within the Polygon or not

x

Array of coordinates along X for the points to be tested

y

Array of coordinates along Y for the points to be tested

Details

The arguments 'x' and 'y' must have the same dimension

Value

A vector (same dimension as 'x' or 'y'): a value of TRUE indicates that the correspondaing sample belongs to the Polygon; FALSE otherwise

See Also

polygon-class


[Package RGeostats version 11.1.2 Index]