nbdists(spdep)
nbdists()所属R语言包:spdep
Spatial link distance measures
空间链路距离的措施
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a list of spatial neighbour links (a neighbours list of object type nb), the function returns the Euclidean distances along the links in a list of the same form as the neighbours list. If longlat = TRUE, Great Circle distances are used.
空间邻近的链接(一个邻居列表中的对象类型的列表nb),该函数返回的欧氏距离沿的邻居列表中相同的形式的列表中的链接。如果longlat = TRUE,大圆距离使用。
用法----------Usage----------
nbdists(nb, coords, longlat = NULL)
参数----------Arguments----------
参数:nb
an object of class nb
一个对象的类nb
参数:coords
matrix of point coordinates or a SpatialPoints object
的点坐标或SpatialPoints对象的矩阵
参数:longlat
TRUE if point coordinates are longitude-latitude decimal degrees, in which case distances are measured in kilometers; if coords is a SpatialPoints object, the value is taken from the object itself
TRUE,如果点的坐标是经度,纬度十进制度,在这种情况下,测量距离(公里);,如果坐标是一个SpatialPoints,对象,是从对象本身的价值
值----------Value----------
A list with class nbdist
列表类nbdist
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>
参见----------See Also----------
summary.nb, nb2listw
summary.nb,nb2listw
实例----------Examples----------
example(columbus)
coords <- coordinates(columbus)
dlist <- nbdists(col.gal.nb, coords)
dlist <- lapply(dlist, function(x) 1/x)
stem(unlist(dlist))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|