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)

