interweave            package:arrayMagic            R Documentation

_i_n_t_e_r_w_e_a_v_e

_D_e_s_c_r_i_p_t_i_o_n:

     The first object is "interweaved" with the second object and the
     resulting object with the following object and continued as long
     as the last object is reached. Note: 'AsIs' class objects are
     coerced to a vector before interweaving starts.

_U_s_a_g_e:

     interweave(...)

_A_r_g_u_m_e_n_t_s:

     ...: vectors, matrices, one- and two-dimensional arrays; an 'AsIs'
          class object is coerced to a vector.

_V_a_l_u_e:

     An "interweaved" object, cf. example.

_A_u_t_h_o_r(_s):

     Andreas Buness <a.buness@dkfz.de>

_E_x_a_m_p_l_e_s:

         x <- seq(1,100,2)
         y <- seq(2,100,2)
         z <- interweave(x,y)
         stopifnot( all.equal(z,1:100) )
             

