Skip to content
Prev 9035 / 29559 Next

From Sparse Matrix to Listw

On Thu, 19 Aug 2010, Lata Rafael wrote:

            
You mean in package Matrix, and as described in ?"TsparseMatrix-class"?
an object into a "spatial.neighbours" object (see listw2sn), then use 
sn2listw() to go the other way. Watch the attributes, as they need to be 
correct. Also note that the input object uses 0-base indices, but the sn 
object uses 1-base indices.

Hope this helps,

Roger