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)<-value
sampleData(object,...)
sampleData(object)<-value
sampleLabels(object,...)
sampleLabels(object)<-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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|