rmSingletons(spider)
rmSingletons()所属R语言包:spider
Detect and remove singletons
检测并删除单身
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A utility to detect and remove species represented only by singletons.
一个实用程序来检测和删除仅代表单身的物种。
用法----------Usage----------
rmSingletons(sppVector, exclude = TRUE)
参数----------Arguments----------
参数:sppVector
Vector of species names. (see sppVector).
向量的种类名称。 (见sppVector)。
参数:exclude
Logical. Should singletons be removed? Default of TRUE.
逻辑。如果单身删除吗?默认值为TRUE。
Details
详细信息----------Details----------
When exclude = TRUE (the default), singletons are excluded and the vector returns the index of all non-singletons in the dataset. When exclude = FALSE, the indices of the singletons are presented.
当exclude = TRUE(默认值),单身排除和向量的索引返回数据集的所有非单身。当exclude = FALSE,单身指数。
值----------Value----------
Returns a numeric vector giving the indices of the selected individuals.
返回一个数值向量,给选定的个人指标。
(作者)----------Author(s)----------
Samuel Brown <s_d_j_brown@hotmail.com>
实例----------Examples----------
data(anoteropsis)
anoDist <- dist.dna(anoteropsis)
anoSpp <- sapply(strsplit(dimnames(anoteropsis)[[1]], split="_"),
function(x) paste(x[1], x[2], sep="_"))
rmSingletons(anoSpp)
rmSingletons(anoSpp, exclude=FALSE)
data(dolomedes)
doloDist <- dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
rmSingletons(doloSpp)
rmSingletons(doloSpp, exclude=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|