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)

