[R-sig-Geo] How to create a regular grid?

Roberto Patuelli roberto.patuelli at unibo.it
Wed Apr 11 17:31:27 CEST 2018


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 object)?

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.

Thanks
Roberto

********************
Roberto Patuelli, Ph.D.
Department of Economics
University of Bologna
Rimini campus
Italy



More information about the R-sig-Geo mailing list