getSamples               package:HELP               R Documentation

_G_e_t _s_a_m_p_l_e_s

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

     Fetch a subset of samples from a given data structure

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

     getSamples(x, y, ...)

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

       x: the matrix of sample data to subset. If 'x' is a vector it is
          interpreted as a matrix. 'x' can also be of class
          '"ExpressionSet"'. 

       y: which sample(s) to use as data. Can be a vector of characters
          matching sample names, integers indicating which samples to
          choose, or a mixture of the two. If not supplied, all samples
          will be used. 

     ...: Arguments to be passed to methods (see 'getSamples-methods'):

          '_e_l_e_m_e_n_t' which element of 'AssayData' to use for a given
               'ExpressionSet' input (default is '"exprs"') 

          '_o_r_d_e_r' vector of characters, specifying on which column(s)
               to order the sample data. If 'NULL' (default), the data
               will be returned without ordering enforced. 

          '...' other arguments passed are not handled at this time. 

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

     Returns a matrix of values corresponding to a subset of samples
     from the data supplied, where columns correspond to samples. 
     Function halts if no samples to return.

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

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

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

     'getSamples-methods'

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

     data(sample.ExpressionSet)
     se.ABC <- getSamples(sample.ExpressionSet, c("A", "B", "C"), element="se.exprs")
     se.ABC[1:10,]

