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)

