rep.onion               package:onion               R Documentation

_R_e_p_l_i_c_a_t_e _e_l_e_m_e_n_t_s _o_f _o_n_i_o_n_i_c _v_e_c_t_o_r_s

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

     Replicate elements of onionic vectors

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

     ## S3 method for class 'onion':
     rep(x, ...)

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

       x: Onionic vector

     ...: Further arguments passed to 'seq.default()'

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

     Robin K. S. Hankin

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

     a <- roct(3)
     rep(a,2) + a[1]
     rep(a,each=2)
     rep(a,length.out=5)

