strsplit2               package:limma               R Documentation

_S_p_l_i_t _C_o_m_p_o_s_i_t_e _N_a_m_e_s

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

     Split a vector of composite names into a matrix of simple names.

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

     strsplit2(x, split, extended = TRUE, fixed = FALSE, perl = FALSE)

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

       x: character vector

   split: character to split each element of vector on, see 'strsplit'

extended: logical.  If 'TRUE', extended regular expression matching is
          used, see 'strsplit'.

   fixed: logical. If 'TRUE' match string exactly, otherwise use
          regular expressions. Has priority over perl and extended.

    perl: logical. Should perl-compatible regexps be used? Has priority
          over extended.

_D_e_t_a_i_l_s:

     This function is the same as 'strsplit' except that the output
     value is a matrix instead of a list. The first column of the
     matrix contains the first component from each element of 'x', the
     second column contains the second components etc. The number of
     columns is equal to the maximum number of components for any
     element of 'x'.

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

     A list containing components 

    Name: character vector of the same length as 'x' contain first
          splits of each element

Annotation: character vector of the same length as 'x' contain second
          splits of each element

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

     Gordon Smyth

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

     'strsplit'.

     An overview of LIMMA functions for reading data is given in
     03.ReadingData.

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

     x <- c("AA196000;actinin, alpha 3",
     "AA464163;acyl-Coenzyme A dehydrogenase, very long chain",
     "3E7;W15277;No Annotation")
     strsplit2(x,split=";")

