prevR (version 3.4.1)

NA.outside.SpatialPolygons: Affect NA value to points located outside a polygon.

Description

This function forces points of an object of class sp::SpatialPixelsDataFrame located outside the limits defined by an object of class sp::SpatialPolygons to NA.

Usage

NA.outside.SpatialPolygons(sp.data, sp.poly)

Arguments

sp.data
sp.poly

object of class sp::SpatialPolygons.

Value

Return sp.data modified.

See Also

point.in.SpatialPolygons().