getFeatures               package:HELP               R Documentation

_G_e_t _f_e_a_t_u_r_e_s (_m_e_t_h_o_d_s)

_D_e_s_c_r_i_p_t_i_o_n:

     Fetch a subset of features from a given data structure

_U_s_a_g_e:

     getFeatures(x, y, ...)

_A_r_g_u_m_e_n_t_s:

       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. 

_V_a_l_u_e:

     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.

_A_u_t_h_o_r(_s):

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

_S_e_e _A_l_s_o:

     'getFeatures-methods'

_E_x_a_m_p_l_e_s:

     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]

