i2xy            package:mm430a2mmensecdf            R Documentation

_C_o_n_v_e_r_t (_x,_y)-_c_o_o_r_d_i_n_a_t_e_s _t_o _s_i_n_g_l_e-_n_u_m_b_e_r _i_n_d_i_c_e_s _a_n_d _b_a_c_k.

_D_e_s_c_r_i_p_t_i_o_n:

     Convert (x,y)-coordinates on the chip (and in the CEL file) to the
     single-number indices used in AffyBatch and CDF environment, and
     back.

_U_s_a_g_e:

     i2xy(i)
     xy2i(x,y)

_A_r_g_u_m_e_n_t_s:

       x: numeric. x-coordinate (from 1 to 732)

       y: numeric. y-coordinate (from 1 to 732)

       i: numeric. single-number index (from 1 to 535824)

_D_e_t_a_i_l_s:

     Type 'i2xy' and 'xy2i' at the R prompt to  view the function
     definitions.

_S_e_e _A_l_s_o:

     'mm430a2mmensecdf'

_E_x_a_m_p_l_e_s:

       xy2i(5,5)
       i     = 1:(732*732)
       coord = i2xy(i)
       j     = xy2i(coord[, "x"], coord[, "y"])
       stopifnot(all(i==j))
       range(coord[, "x"])
       range(coord[, "y"])

