找回密码
 注册
查看: 317|回复: 0

R语言 spdep包 listw2sn()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:40:05 | 显示全部楼层 |阅读模式
listw2sn(spdep)
listw2sn()所属R语言包:spdep

                                        Spatial neighbour sparse representation
                                         空间邻居的稀疏表示

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

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>



参见----------See Also----------

nb2listw
nb2listw


实例----------Examples----------


example(columbus)
col.listw <- nb2listw(col.gal.nb)
col.listw$neighbours[[1]]
col.listw$weights[[1]]
col.sn <- listw2sn(col.listw)
str(col.sn)
## Not run: [#不运行:]
col.sp <- as.spam.listw(col.listw)
str(col.sp)

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-17 22:16 , Processed in 0.027089 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表