dim                  package:CALIB                  R Documentation

_R_e_t_r_i_e_v_e _t_h_e _D_i_m_e_n_s_i_o_n_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 number of rows (genes) and columns (arrays) for an 
     RGList_CALIB or SpikeList

_U_s_a_g_e:

      ## S3 method for class 'RGList_CALIB':
      dim(x)
      ## S3 method for class 'RGList_CALIB':
      length(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:

     Microarray data objects share many analogies with ordinary
     matrices in which the rows correspond to spots or genes and the
     columns to arrays. These methods allow one to extract the size of
     microarray data objects in the same way that one would do for
     ordinary matrices.

     A consequence is that row and column commands 'nrow(x)', 'ncol(x)'
     and so on also work.

_V_a_l_u_e:

     Numeric vector of length 2. The first element is the number of
     rows(genes) and the second is the number of columns(arrays).

_A_u_t_h_o_r(_s):

     Hui Zhao

_R_e_f_e_r_e_n_c_e_s:

     'dim' in limma package

_S_e_e _A_l_s_o:

     'dim' in the base package

     'dim' 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))

     dim(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))

     dim(spike)

