Learn R Programming

bivariatemaps (version 1.7)

GridFilter: GridFilter: Intersect a Shape with a Grid and Exclude Cells Based on Area Coverage

Description

Overlay a shapefile with a grid. Then, excludes grid cells that do not cover a specific amount of the Shape area.

Usage

GridFilter(shape, resol = 1, prop = 0)

Value

A gridded shapefile.

Arguments

shape

A shapefile.

resol

The resolution (in degrees) of the grid you want to overlay. The default is 1 degree of longitude and latitude.

prop

The minimum value of area covered by the grid cell. The default is 0 (i.e. it does not delete any grid cell).

Examples

Run this code
# https://rfunctions.blogspot.com/2014/12/gridfilter-intersect-grid-with-shape.html

Run the code above in your browser using DataLab