Description Usage Arguments Value Examples
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.
1 2 3 4 5 6 | sData(object,...)
sData(object)<-value
sampleData(object,...)
sampleData(object)<-value
sampleLabels(object,...)
sampleLabels(object)<-value
|
object |
An OTUset or a TAXset object |
value |
The replacement value for |
... |
Added for completeness. Enables the passing of arguments. |
sData
returns a dataframe.
sampleData
returns an AnnotatedDataFrame.
sampleLabels
returns a character.
assignmentNames
returns a character.
1 2 3 4 5 6 7 8 9 10 11 | ## locate directory with data
dirPath <- system.file("extdata/Sogin_2006", package="OTUbase")
## read in data into OTUset object
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(soginOTU)
## get the sampleData slot
sampleData(soginOTU)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.