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

R语言 spdep包 nb.set.operations()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:41:48 | 显示全部楼层 |阅读模式
nb.set.operations(spdep)
nb.set.operations()所属R语言包:spdep

                                        Set operations on neighborhood objects
                                         设置居委会对象的操作上

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

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

Set operations on neighbors list objects
设置邻居列表对象的操作


用法----------Usage----------


intersect.nb(nb.obj1,nb.obj2)
union.nb(nb.obj1,nb.obj2)
setdiff.nb(nb.obj1,nb.obj2)
complement.nb(nb.obj)



参数----------Arguments----------

参数:nb.obj
a neighbor list created from any of the neighborhood list funtions
邻居从任何邻里列表funtions创建的列表的


参数:nb.obj1
a neighbor list created from any of the neighborhood list funtions
邻居从任何邻里列表funtions创建的列表的


参数:nb.obj2
a neighbor list created from any of the neighborhood list funtions
邻居从任何邻里列表funtions创建的列表的


Details

详细信息----------Details----------

These functions perform set operations on each element of a neighborlist. The arguments must be neighbor lists created from the same coordinates, and the region.id attributes must be identical.
这些函数执行的每个元素的neighborlist的设置操作。参数必须是来自同一个坐标创建的邻居列表,和的region.id的属性必须是相同的。


值----------Value----------


参数:nb.obj
A new neighborlist created from the set operations on the input neighbor list(s)  
设置操作的输入邻居列表(创建)一个新的neighborlist


(作者)----------Author(s)----------


Nicholas Lewin-Koh <a href="mailto:nikko@hailmail.net">nikko@hailmail.net</a>



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

intersect.nb, union.nb,
intersect.nb,union.nb,


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


example(columbus)
coords <- coordinates(columbus)
col.tri.nb <- tri2nb(coords)
oldpar <- par(mfrow=c(1,2))
col.soi.nb <- graph2nb(soi.graph(col.tri.nb, coords))
plot(columbus, border="grey")
plot(col.soi.nb, coords, add=TRUE)
title(main="Sphere of Influence Graph")
plot(columbus, border="grey")
plot(complement.nb(col.soi.nb), coords, add=TRUE)
title(main="Complement of Sphere of Influence Graph")
par(mfrow=c(2,2))
col2 <- droplinks(col.gal.nb, 21)
plot(intersect.nb(col.gal.nb, col2), coords)
title(main="Intersect")
plot(union.nb(col.gal.nb, col2), coords)
title(main="Union")
plot(setdiff.nb(col.gal.nb, col2), coords)
title(main="Set diff")
par(oldpar)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 06:41 , Processed in 0.027894 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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