grid2spts: grid2spts function

Description Usage Arguments Value

Description

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

Usage

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

Arguments

xgrid

vector of x centroids (equally spaced)

ygrid

vector of x centroids (equally spaced)

proj4string

an optional proj4string, projection string for the grid, set using the function CRS

Value

a SpatialPoints object


bentaylor1/spatsurv documentation built on May 12, 2019, 3:02 p.m.