polygon.inside {RGeostats} | R Documentation |
Cheks if a set of points belong to a Polygon or not
polygon.inside(polygon, x, y, z=NA, flag.nested=FALSE)
polygon |
The |
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 |
The arguments 'x' and 'y' must have the same dimension
A vector (same dimension as 'x' or 'y'): a value of TRUE indicates that the correspondaing sample belongs to the Polygon; FALSE otherwise