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