The function makes a "spatial neighbour" object representation
(similar to the S-PLUS spatial statististics module representation of a
"listw" spatial weights object. sn2listw() is the inverse function to listw2sn(), creating a "listw" object from a "spatial neighbour" object
Usage
listw2sn(listw)
sn2listw(sn)
Arguments
listw
a listw object from for example nb2listw
sn
a spatial.neighbour object
Value
A data frame with three columns, and with class spatial.neighbour:
fromregion number id for the start of the link (S-PLUS row.id)
toregion number id for the end of the link (S-PLUS col.id)