unit.rep                package:grid                R Documentation

_R_e_p_l_i_c_a_t_e _E_l_e_m_e_n_t_s _o_f _U_n_i_t _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Replicates the units according to the values given in 'times' and
     'length.out'.

     This function has been deprecated in favour of a unit method for
     the generic 'rep' function.

_U_s_a_g_e:

     unit.rep(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: An object of class '"unit"'. 

     ...: arguments to be passed to 'rep' such as 'times' and
          'length.out'.

_V_a_l_u_e:

     An object of class '"unit"'.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     'rep'

_E_x_a_m_p_l_e_s:

     rep(unit(1:3, "npc"), 3)
     rep(unit(1:3, "npc"), 1:3)
     rep(unit(1:3, "npc") + unit(1, "inches"), 3)
     rep(max(unit(1:3, "npc") + unit(1, "inches")), 3)
     rep(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4, 3)
     rep(unit(1:3, "npc") + unit(1, "strwidth", "a")*4, 3)

