home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / sequence < prev    next >
Encoding:
Text File  |  1997-04-23  |  591 b   |  26 lines

  1.     
  2.     _C_r_e_a_t_e _A _V_e_c_t_o_r _o_f _S_e_q_u_e_n_c_e_s
  3.     
  4.          sequence(nvec)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.             nvec : an integer vector each element of which
  9.                    specifies the upper bound of a sequence.
  10.     
  11.     _D_e_s_c_r_i_p_t_i_o_n:
  12.     
  13.          For each element of nvec the sequence seq(nvec[i]) is
  14.          created. These are appended and the result returned.
  15.     
  16.     _S_e_e _A_l_s_o:
  17.     
  18.          gl, seq, rep.
  19.     
  20.     _E_x_a_m_p_l_e_s:
  21.     
  22.          # return the concatenated sequences 1:3 and 1:2.
  23.          > sequence(c(3,2))
  24.          [1] 1 2 3 1 2
  25.     
  26.