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

Description Usage Arguments Value See Also

View source: R/NA.outside.SpatialPolygons.prevR.r

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

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

Arguments

sp.data

object of class sp::SpatialPixelsDataFrame.

sp.poly

object of class sp::SpatialPolygons.

Value

Return sp.data modified.

See Also

point.in.SpatialPolygons().


prevR documentation built on Aug. 28, 2020, 5:08 p.m.