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
sampleData
or sampleLabels
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)
Run the code above in your browser using DataLab