Description Usage Arguments Value Author(s) Examples
View source: R/functions-MSnSet.R
Subsets MSnSet
instances to their common feature names.
1 | commonFeatureNames(x, y)
|
x |
An instance of class |
y |
An instance of class |
An linkS4class{MSnSetList}
composed of the input
MSnSet
containing only common features in the same
order. The names of the output are either the names of the
x
and y
input variables or the names of x
if a list is provided.
Laurent Gatto
1 2 3 4 5 6 7 8 9 10 11 12 13 | library("pRolocdata")
data(tan2009r1)
data(tan2009r2)
cmn <- commonFeatureNames(tan2009r1, tan2009r2)
names(cmn)
## as a named list
names(commonFeatureNames(list(a = tan2009r1, b = tan2009r2)))
## without message
suppressMessages(cmn <- commonFeatureNames(tan2009r1, tan2009r2))
## more than 2 instance
data(tan2009r3)
cmn <- commonFeatureNames(list(tan2009r1, tan2009r2, tan2009r3))
length(cmn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.