getWeights: Create grid mask for a polygon

View source: R/getWeights.R

getWeightsR Documentation

Create grid mask for a polygon

Description

This function calculates the weight for each cell with respect to the area that intersects with a polygon.

Usage

getWeights(grid, shp)

Arguments

grid

Grid (as polygons) to be intersected.

shp

Polygons that will be used to intersect the grids.

Value

Weight for each cell index. NA means no intersection.


profesorpaiche/polilla documentation built on Nov. 3, 2023, 2:23 a.m.