Learn R Programming

spNetwork (version 0.2.1)

build_grid: Spatial grid

Description

Generate a grid of a specified shape in the bbox of a Spatial object.

Usage

build_grid(grid_shape, spatial)

Arguments

grid_shape

A numeric vector of length 2 indicating the number of rows and the numbers of columns of the grid

spatial

A list of SpatialDataFrames objects (package sp)

Value

A SpatialPolygonsDataFrame representing the grid

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab