Description Usage Arguments Value Author(s) See Also Examples
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. The as.spam.listw method converts a "listw" object to a sparse matrix as defined in the spam package, using listw2sn().
| 1 2 3 | listw2sn(listw)
sn2listw(sn)
as.spam.listw(listw)
 | 
| listw | a  | 
| sn | a  | 
listw2sn()returns a data frame with three columns, and with class spatial.neighbour:
| from | region number id for the start of the link (S-PLUS row.id) | 
| to | region number id for the end of the link (S-PLUS col.id) | 
| weights | weight for this link | 
Roger Bivand Roger.Bivand@nhh.no
| 1 2 3 4 5 6 7 8 9 10 11 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.