gOverlay: gOverlay function

View source: R/lgcpStructures.R

gOverlayR Documentation

gOverlay function

Description

A function to overlay the FFT grid, a SpatialPolygons object, onto a SpatialPolygonsDataFrame object.

Usage

gOverlay(grid, spdf)

Arguments

grid

the FFT grid, a SpatialPolygons object

spdf

a SpatialPolygonsDataFrame object

Details

this code was adapted from Roger Bivand:
https://stat.ethz.ch/pipermail/r-sig-geo/2011-June/012099.html

Value

a matrix describing the features of the overlay: the originating indices of grid and spdf (all non-trivial intersections) and the area of each intersection.


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.