找回密码
 注册
查看: 259|回复: 0

R语言 spider包 rmSingletons()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 15:19:16 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-19 02:03 , Processed in 0.026286 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表