shape2grid: shape2grid

Description Usage Arguments Value Examples

Description

shape2grid converts a shape into a grid. It is very useful for clustering purposes.

Usage

1
shape2grid(shape, gsize = 100)

Arguments

shape

Shapefile. Spatial object to be converted

gsize

Optional. Numeric. Size of each cell in meters. 100 m by default.

Value

a spatial object.

Examples

1
2
3
4
## Not run: 
shape <- shape2grid(shape, 100)

## End(Not run)

ahornero/rsensing documentation built on May 8, 2019, 1:37 a.m.