Description Usage Arguments Value Author(s) Examples
View source: R/fdata-selection.R
Select feature variables to be retained.
requiredFvarLabels
returns a character
vector with the
required feature data variable names (fvarLabels
, i.e. the column
names in the fData
data.frame
) for the specified object.
1 2 3 | selectFeatureData(object, graphics = TRUE, fcol)
requiredFvarLabels(x = c("OnDiskMSnExp", "MSnExp", "MSnSet"))
|
object |
An |
graphics |
A |
fcol |
A |
x |
|
For selectFeatureData
: updated object containing only
selected feature variables.
For requiredFvarLabels
: character
with the required feature
variable names.
Laurent Gatto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library("pRolocdata")
data(hyperLOPIT2015)
## 5 first feature variables
x <- selectFeatureData(hyperLOPIT2015, fcol = 1:5)
fvarLabels(x)
## Not run:
## select via GUI
x <- selectFeatureData(hyperLOPIT2015)
fvarLabels(x)
## End(Not run)
## Subset the feature data of an OnDiskMSnExp object to the minimal
## required columns
f <- system.file("microtofq/MM14.mzML", package = "msdata")
od <- readMSData(f, mode = "onDisk")
## what columns do we have?
fvarLabels(od)
## Reduce the feature data data.frame to the required columns only
od <- selectFeatureData(od, fcol = requiredFvarLabels(class(od)))
fvarLabels(od)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.