Skip to content
Prev 174 / 29559 Next

From contiguity matrices to neighbours lists

On Tue, 25 May 2004, Millo Giovanni wrote:

            
mat2listw(<your matrix>)$neighbours should do it.
I'll add this to the documentation TODO - are vignettes or regular help 
files preferable?
This will be happening, as of now in relation to the "sp" package on 
sourceforge, but it hasn't happened yet. Keeping the region names 
associated with the polygons is essential, and knowing when to use 
multi-polygons (how many polygons make up a region) too, so there is 
plenty to do -- help welcome!

Roger