getFeatures {HELP} | R Documentation

## Get features (methods)

### Description

Fetch a subset of features from a given data structure

### Usage

    getFeatures(x, y, ...)

### Arguments

`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.

### Value

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.

### Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu)

### See Also

`getFeatures-methods`

### Examples

    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]

[Package HELP version 1.50.0 Index]