If you want the points as sp class objects, feed SpatialPoints from
pts = sp::SpatialPoints(expand.grid(x=1:N,y=1:N))
On Wed, Apr 11, 2018 at 4:31 PM, Roberto Patuelli <[hidden email] > wrote:
> Dear All,
> Maybe a basic question:
> How can I create - for simulation purposes - a regular grid (a raster) N
> by N on which to generate a rook spatial weights matrix (listw or nb
> I actually only need to obtain the listw/nb object for such regular grid.
> It feels like this is very simple, but somehow I'm stuck.
> Roberto Patuelli, Ph.D.
> Department of Economics
> University of Bologna
> Rimini campus
> R-sig-Geo mailing list
> [hidden email] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo >