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

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

[复制链接]
发表于 2012-2-26 10:17:19 | 显示全部楼层 |阅读模式
sampleData(OTUbase)
sampleData()所属R语言包:OTUbase

                                        sampleData
                                         的sampleData

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These functions access and replace the sampleData slot of OTUbase objects. sampleData and sampleData<- access and replace the AnnotatedDataFrame sampleData. sampleLabels and sampleLabels<- access and replace the labels of this AnnotatedDataFrame. sData and sData<- access and replace the dataframe component of the AnnotatedDataFrame.
这些功能的访问,并取代sampleData OTUbase对象插槽。 sampleData和sampleData<-访问和更换的AnnotatedDataFrame sampleData。 sampleLabels和sampleLabels<-访问取代本AnnotatedDataFrame标签的。 sData和sData<-访问和取代的AnnotatedDataFrame dataframe组件。


用法----------Usage----------



    sData(object,...)
    sData(object)&lt;-value
    sampleData(object,...)
    sampleData(object)&lt;-value
    sampleLabels(object,...)
    sampleLabels(object)&lt;-value




参数----------Arguments----------

参数:object
An OTUset or a TAXset object
OTUset或TAXset对象


参数:value
The replacement value for sampleData or sampleLabels
sampleData或sampleLabels替换值


参数:...
Added for completeness. Enables the passing of arguments.
新增的完整性。启用参数逝世。


值----------Value----------

sData returns a dataframe. sampleData returns an AnnotatedDataFrame. sampleLabels returns a character. assignmentNames returns a character.
sData返回一个dataframe。 sampleData返回一个AnnotatedDataFrame。 sampleLabels返回一个字符。 assignmentNames返回一个字符。


举例----------Examples----------



## locate directory with data[#定位数据目录]
dirPath <- system.file("extdata/Sogin_2006", package="OTUbase")

## read in data into OTUset object[#读取数据OTUset对象]
soginOTU <- readOTUset(dirPath=dirPath, level="0.03", samplefile="sogin.groups", fastafile="sogin.fasta", otufile="sogin.unique.filter.fn.list", sampleADF="sample_metadata.txt")

## get the sData dataframe[#得到SDATA dataframe。]
sData(soginOTU)

## get the sampleData slot[#得到的sampleData插槽]
sampleData(soginOTU)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-1 23:55 , Processed in 0.027075 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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