bcoov(simba)
bcoov()所属R语言包:simba
Calculate Bray-Curtis distance for only one variable
只有一个变量计算的布雷柯蒂斯距离为
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates Bray-Curtis distance for only one variable: How dissimilar are the units regarding for instance pH?
计算布雷柯蒂斯的距离只有一个变量:例如pH值有关单位的不同是如何呢?
用法----------Usage----------
bcoov(x, names, listout = FALSE)
参数----------Arguments----------
参数:x
numeric vector with quantitative data from sampling-units, standardization may be applied before
从抽样单位数字矢量量化的数据,标准化,适用于在
参数:names
where should the names be taken from, must be a vector of the same length as x and should give the names of the sampling-units
应该在哪里取自名称,必须是一个矢量的相同的长度x,应该给采样单元的名称
参数:listout
Shall the result given in list-format (data.frame)? Defaults to FALSE
给出的结果列表中的格式(data.frame)的吗?默认为false
Details
详细信息----------Details----------
It is just a simple way to calculate similarity based on only one variable. In the future there might be a possibility to choose from some functions. However, you could also use the difference in the data-values instead (which is the Euclidean distance in one dimensional space).
这仅仅是一个简单的方法来计算相似性的基础上只有一个变量。在未来,有可能是一个可能选择一些功能。然而,也可以使用中的数据值,而不是(这是在一维空间中的欧几里得距离)的差异。
值----------Value----------
Returns a dist object or a data.frame (in the case of listout = TRUE) with
返回dist对象或一个data.frame(listout= TRUE)的情况下与
参数:NBX
one of the compared sampling units
一个与被比较的抽样单位
参数:NBY
the other part of the pair
该对的另一部分
参数:x
The returned distance value. It is named like the tested variable
返回的距离值。它被命名,如测试的变量
(作者)----------Author(s)----------
Gerald Jurasinski
参见----------See Also----------
vegdist, dist.quant, dsvdis
vegdist,dist.quant,dsvdis
实例----------Examples----------
data(abis)
names(abis.env) ##take a look at the data[来看看在数据]
##calculate the similarity (Bray-Curtis) between the plots [#相似度计算(布雷柯蒂斯)之间的图]
##regarding pH[#关于pH值]
pH.dist <- bcoov(abis.env$pH, names=rownames(abis.env))
## directly give it as a list (data.frame)[#直接将它作为一个列表(数据框)]
pH.dist.ls <- bcoov(abis.env$pH, names=rownames(abis.env)
, listout=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|