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

