sequence                package:base                R Documentation

_C_r_e_a_t_e _A _V_e_c_t_o_r _o_f _S_e_q_u_e_n_c_e_s

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

     For each element of 'nvec' the sequence 'seq(nvec[i])' is created.
     These are appended and the result returned.

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

     sequence(nvec)

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

    nvec: an integer vector each element of which specifies the upper
          bound of a sequence.

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

     'gl', 'seq', 'rep'.

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

     sequence(c(3,2))# the concatenated sequences 1:3 and 1:2.
     #> [1] 1 2 3 1 2

