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, z=NA, flag.nested=FALSE)

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

z

Array of coordinates along Z for the points to be tested or NA

flag.nested

If flag.nested=TRUE, a sample is masked off if the number of polysets to which it belongs is odd If flag.nested=FALSE, a sample is masked off as soon as it belongs to one polyset

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 14.0.10 Index]