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.
style: default NULL, missing, set to "M" and warning given; if not "M", passed to nb2listw to re-build the object
zero.policy: default NULL, use global option value; if FALSE stop with error for any empty neighbour sets, if TRUE permit the weights list to be formed with zero-length weights vectors
from_mat2listw: default FALSE, set TRUE if called from mat2listw
Returns
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)