overGrid: Spatial overlay for grids and Spatial* objects

View source: R/overGrid.R

overGridR Documentation

Spatial overlay for grids and Spatial* objects

Description

Application of function over from sp to grids or station data.

Usage

overGrid(grid, layer, subset = FALSE)

Arguments

grid

Input grid or station data.

layer

SpatialPolygons object from which the geometries or attributes are queried (type help(package = "sp").

subset

Logical (default is FALSE). If TRUE, spatial subsetting is performed over the imput grid. Otherwise, grid-boxes outside layer are assigned as NA.

Details

All grid locations outside layer are filled with NAs.

Value

A grid or station data.

A grid

Author(s)

M. Iturbide


SantanderMetGroup/geoprocessoR documentation built on June 29, 2023, 9:41 p.m.