nstr                  package:Hmisc                  R Documentation

_C_r_e_a_t_e_s _a _s_t_r_i_n_g _o_f _a_r_b_i_t_r_y _l_e_n_g_t_h

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

     Creates a vector of strings which consists of the string segment
     given in each element of the 'string' vector repeated 'times'.

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

     nstr(string, times)

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

  string: character: vector of string segments to be repeated.  Will be
          recycled if argument 'times' is longer.

   times: integer: vector of number of times to repeat the corisponding
          segment.  Will be recycled if argument 'string' is longer. 

_V_a_l_u_e:

     returns a character vector the same length as the longest of the
     two arguments.

_N_o_t_e:

     Will throw a warning if the length of the longer argment is not a
     even multiple of the shorter argument.

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

     Charles Dupont

_S_e_e _A_l_s_o:

     'paste', 'rep'

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

     nstr(c("a"), c(0,3,4))

     nstr(c("a", "b", "c"), c(1,2,3))

     nstr(c("a", "b", "c"), 4)

