prevR (version 3.4.1)

point.in.SpatialPolygons: Test if a point falls within a given polygon.

Description

This function tests if one or more points are located inside an object of class sp::SpatialPolygons.

Usage

point.in.SpatialPolygons(point.x, point.y, SpP)

Arguments

point.x

numerical array of x-coordinates of points.

point.y

numerical array of y-coordinates of points.

SpP

object of class sp::SpatialPolygons

Value

Boolean array.

See Also

sp::point.in.polygon(), [NA.outside.SpatialPolygons())].

[NA.outside.SpatialPolygons())]: R:NA.outside.SpatialPolygons())