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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|