maCompInd               package:marray               R Documentation

_G_e_n_e_r_a_t_e _s_p_o_t _i_n_d_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function generates spot indices from ranges of rows and
     columns for the grid and spot matrices. Spots on the array are
     numbered consecutively starting from the top left grid and the top
     left spot within each grid.

_U_s_a_g_e:

     maCompInd(grows, gcols, srows, scols, L)

_A_r_g_u_m_e_n_t_s:

   grows: numeric vector of grid rows.

   gcols: numeric vector of grid columns.

   srows: numeric vector of spot rows.

   scols: numeric vector of spot columns.

       L: object of class '"marrayLayout"'.

_V_a_l_u_e:

     a numeric vector of spot indices.

_A_u_t_h_o_r(_s):

     Yee Hwa (Jean) Yang, Sandrine Dudoit, <URL:
     http://www.stat.berkeley.edu/~sandrine>.

_S_e_e _A_l_s_o:

     'marrayLayout', 'maCoord2Ind', 'maInd2Coord', 'maCompCoord'.

_E_x_a_m_p_l_e_s:

     L <- new("marrayLayout", maNgr=4, maNgc=4, maNsr=22, maNsc=24)
     maCompInd(1:2,1,1:4,1:3,L)

