Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

lgcp (version 1.3-3)

grid2spoly: grid2spoly function

Description

A function to convert a regular (x,y) grid of centroids into a SpatialPolygons object

Usage

grid2spoly(xgrid, ygrid, proj4string = CRS(as.character(NA)))

Arguments

xgrid
vector of x centroids (equally spaced)
ygrid
vector of x centroids (equally spaced)
proj4string
proj 4 string: specify in the usual way

Value

  • a SpatialPolygons object