keepClasses | R Documentation |
Retain samples, classes or features in an AnalysisData
object.
keepClasses(d, cls = "class", classes = c())
## S4 method for signature 'AnalysisData'
keepClasses(d, cls = "class", classes = c())
keepFeatures(d, features = character())
## S4 method for signature 'AnalysisData'
keepFeatures(d, features = character())
keepSamples(d, idx = "fileOrder", samples = c())
## S4 method for signature 'AnalysisData'
keepSamples(d, idx = "fileOrder", samples = c())
d |
S4 object of class AnalysisData |
cls |
info column to use for class information |
classes |
classes to keep |
features |
features to remove |
idx |
info column containing sample indexes |
samples |
sample indexes to keep |
An S4 object of class AnalysisData
with specified samples, classes or features retained.
keepClasses
: Keep classes.
keepFeatures
: Keep features.
keepSamples
: Keep samples.
library(metaboData)
d <- analysisData(abr1$neg[,200:300],abr1$fact)
## Keep classes
d %>%
keepClasses(cls = 'day',classes = 'H')
## Keep features
d %>%
keepFeatures(features = c('N200','N201'))
## Keep samples
d %>%
keepSamples(idx = 'injorder',samples = c(1,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.