grid2spoly: grid2spoly function

Description Usage Arguments Value

View source: R/lgcpMethods.R

Description

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

Usage

1
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


lgcp documentation built on May 29, 2017, 5:32 p.m.

Search within the lgcp package
Search all R packages, documentation and source code