getFeatures {HELP} | R Documentation |
Fetch a subset of features from a given data structure
getFeatures(x, y, ...)
x |
the matrix of feature data to subset. If x is a vector it is interpreted as a matrix. x can also be of class "ExpressionSet" or an "AnnotatedDataFrame" object. |
y |
which feature(s) to use. Can be a vector of characters matching feature names, integers indicating which features to choose, or a mixture of the two. If not supplied (or if equivalent to "*"), all features will be used. |
... |
other arguments passed are not handled at this time. |
Returns a matrix of values corresponding to a subset of features from the data structure supplied, where columns correspond to features. Function halts if no features to return.
Reid F. Thompson (rthompso@aecom.yu.edu)
data(sample.ExpressionSet) df <- data.frame(x=1:500,y=501:1000, row.names=featureNames(sample.ExpressionSet)) featureData(sample.ExpressionSet) <- new("AnnotatedDataFrame", data=df, dimLabels=c("featureNames", "")) getFeatures(sample.ExpressionSet, "y")[1:10]