idx2dimnames             package:GOstats             R Documentation

_I_n_d_e_x _t_o _D_i_m_n_a_m_e_s

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

     A function to map from integer offsets in an array to the
     corresponding values of the row and column names. There is
     probably a better way but I didn't find it.

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

     idx2dimnames(x, idx)

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

       x: a 'matrix' or 'data.frame'. 

     idx: An integer vector of offsets into the matrix (values between
          1 and the 'length' of the matrix.

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

     A list with two components. If it is a LIST, use 

rowNames : The row names corresponding to the integer index.

colNames : The column names corresponding to the integer index.

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

     R. Gentleman

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

     'dimnames'

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

      data(Ndists)
      ltInf = is.finite(Ndists)
      xx = idx2dimnames(Ndists, ltInf)

