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 / strsplit < prev    next >
Encoding:
Text File  |  1997-04-23  |  585 b   |  23 lines

  1.     
  2.     _S_p_l_i_t _t_h_e _S_t_r_i_n_g_s _i_n _a _V_e_c_t_o_r
  3.     
  4.          strsplit(x,split)
  5.     
  6.     _D_e_s_c_r_i_p_t_i_o_n:
  7.     
  8.          strsplit takes two arguments. A character vector to
  9.          split, x, and a character string, split, to use as
  10.          splits (this can also be a vector). It returns a list
  11.          each element of which contains the vector of splits.
  12.     
  13.     _S_e_e _A_l_s_o:
  14.     
  15.          paste, nchar, substr
  16.     
  17.     _E_x_a_m_p_l_e_s:
  18.     
  19.          x <- c("asfef","qwerty","yuiop[","b","stuff.blah.yech")
  20.          #split x on the letter e
  21.          strsplit(x,"e")
  22.     
  23.