splitDFstrings          package:reposTools          R Documentation

_A _f_u_n_c_t_i_o_n _t_o _s_p_l_i_t _v_e_c_t_o_r _s_t_r_i_n_g_s _i_n _a _d_a_t_a._f_r_a_m_e

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

     Given a data.frame and a set of fields, will take any "string of
     strings" (e.g. "foo, blah, bar") and split them into a vector of
     strings (e.g. c("foo", "blah", "bar")).

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

     splitDFstrings(df, fields, delim = ",[[:space:]]*")

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

      df: A data.frame

  fields: Set of columns (fields) to split

   delim: Delimiter to split on.  Default is ", "

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

     The data.frame with the specified columns appropriately
     manipulated.

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

     Jeff Gentry

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

        a <- data.frame(I("foo, blah"))
        colnames(a) <- "bar"
        a
        splitDFstrings(a,"bar")
        a$bar

