direct(simba)
direct()所属R语言包:simba
Obtain Direction Classes from Geographic Coordinates
从GEO坐标获取方向类
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The functions calculates direction classes from geographic coordinates (not lat/lon). All possible connections between these points are established and the direction of each link is calculated. This is followed by a designation of direction-classes.
计算方向的功能类,从GEO坐标(纬度/经度)。在这些点之间的所有可能的连接的建立和计算每个链接的方向。其次是由一个指定的方向类。
用法----------Usage----------
direct(coord, listout=FALSE)
direct2(coord, listout=FALSE)
参数----------Arguments----------
参数:coord
A data.frame containing coordinates. Should have the same number of points as the data for which the direction-classes are calculated.
Adata.frame包含的坐标。应具有相同的方向类的数据进行计算的点作为数。
参数:listout
Logical value, indicating whether the result is given back in (data.frame)-format instead of returning a dist-object.
逻辑值,表示结果是否还给(data.frame)格式,而不是返回一个dist对象。
值----------Value----------
Returns a matrix containing the direction-classes of the connections between the coordinates as a dist-object. If listout = TRUE, the result is given as a list (data.frame).
返回一个矩阵包含的坐标作为dist对象的方向之间的连接类。如果listout= TRUE,结果是给出一个列表(data.frame)。
direct returns 4 directions (North-South, Northwest-Southeast, West-East, Northeast-Southwest).
direct返回4个方向(北,南,西北,东南,西,东,东北 - 西南)。
direct2 returns 6 directions.
direct26个方向返回。
注意----------Note----------
as with mantel it takes a while to calculate
mantel还需要一段时间来计算
(作者)----------Author(s)----------
Gerald Jurasinski
参见----------See Also----------
mantel, cor.test
mantel,cor.test
实例----------Examples----------
data(abis)
dirclass <- direct(abis.env[,1:2])
dirclass
dirclass.ls <- direct(abis.env[,1:2], listout=TRUE)
dirclass.ls
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|