build_grid: Spatial grid

Description Usage Arguments Value Examples

View source: R/geometrical_functions.R

Description

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

Usage

1
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

1
#This is an internal function, no example provided

spNetwork documentation built on Oct. 30, 2021, 5:06 p.m.