| sampleData {OTUbase} | R Documentation |
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.
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.
## 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)