dimnames                package:CALIB                R Documentation

_R_e_t_r_i_e_v_e _t_h_e _D_i_m_e_n_s_i_o_n _N_a_m_e_s _o_f _a_n _R_G_L_i_s_t__C_A_L_I_B _o_r _S_p_i_k_e_L_i_s_t _o_b_j_e_c_t.

_D_e_s_c_r_i_p_t_i_o_n:

     Retrieve the the dimension names of an RGList_CALIB object or an
     SpikeList object

_U_s_a_g_e:

      ## S3 method for class 'RGList_CALIB':
      dimnames(x)

_A_r_g_u_m_e_n_t_s:

       x: an object of class 'RGList_CALIB' or 'SpikeList'.

_D_e_t_a_i_l_s:

     The dimension names of a micrroarry object or a spike object are
     the same as those of the most important matrix component of that
     object.

     A consequence is that row and column command 'rownames' and
     'colnames' also work.

_V_a_l_u_e:

     Either 'NULL' or a list of length 2. If the value is a list, its
     componets are either 'NULL' or a character vector with the length
     of the appropriate dimension of 'x'.  If the list component is not
     'NULL', the first field of the list indicates rownames  and the
     second field indicates colnames.

_A_u_t_h_o_r(_s):

     Hui Zhao

_R_e_f_e_r_e_n_c_e_s:

     'dimnames' in limma package

_S_e_e _A_l_s_o:

     'dimnames' in the base package

     'dimnames' in the limma package

_E_x_a_m_p_l_e_s:

     # for RGList_CALIB
     R <- G <- matrix(1:8,4,2)
     rownames(R) <- rownames(G) <- c("g1","g2","g3","g4")
     colnames(R) <- colnames(G) <- c("a1","a2")
     RG <- new("RGList_CALIB",list(R=R,G=G))

     dimnames(RG)

     # for SpikeList
     SR <- SG <- matrix(1:8,4,2)
     rownames(SR) <- rownames(SG) <- c("s1","s2","s3","s4")
     colnames(SR) <- colnames(SG) <- c("a1","a2")
     spike <- new("SpikeList",list(R=SR,G=SG))

     dimnames(spike)

