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().
该功能使得一个"spatial neighbour"对象表示(类似的,S-PLUS的空间statististics模块表示一个"listw"的空间权重对象。sn2listw()是反函数listw2sn(),创造一个"listw"从"spatial neighbour"对象的对象。as.spam.listw方法"listw"包中定义的一个稀疏矩阵转换为spam对象,使用<X >。
用法----------Usage----------
listw2sn(listw)
sn2listw(sn)
as.spam.listw(listw)
参数----------Arguments----------
参数:listw
a listw object from for example nb2listw
一个listw的对象例如nb2listw
参数:sn
a spatial.neighbour object
spatial.neighbour对象
值----------Value----------
listw2sn()returns a data frame with three columns, and with class spatial.neighbour:
listw2sn()返回的数据与三柱构架,类spatial.neighbour:
参数:from
region number id for the start of the link (S-PLUS row.id)
区域编号的id为开始的链接(S-PLUS row.id)
参数:to
region number id for the end of the link (S-PLUS col.id)
区域号ID为年底的链接(S-PLUS col.id的)
参数:weights
weight for this link
这个环节的重量
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>