Learn R Programming

prevR (version 2.8)

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 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 SpatialPolygons

Value

  • Boolean array.

encoding

utf8

See Also

point.in.polygon{sp}, NA.outside.SpatialPolygons.