split | R Documentation |
AnalysisData
objectSplit an object of class AnalysisData
into a list based
a class grouping variable.
split(x, cls = "class")
## S4 method for signature 'AnalysisData'
split(x, cls = "class")
x |
S4 object of class |
cls |
sample information column to use for splitting |
A list of AnalysisData
objects.
library(metaboData)
d <- analysisData(abr1$neg,abr1$fact)
## Split the data set based on the 'day' class information column
d <- split(d,cls = 'day')
print(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.