getAttributeField        package:davidTiling        R Documentation

_E_x_t_r_a_c_t _t_h_e _v_a_l_u_e _o_f _a _c_e_r_t_a_i_n _f_i_e_l_d _o_u_t _o_f _a _c_h_a_r_a_c_t_e_r _v_e_c_t_o_r
_s_u_c_h _a_s _i_n _t_h_e "_a_t_t_r_i_b_u_t_e_s" _c_o_l_u_m_n _o_f _a _G_F_F _t_a_b_l_e.

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

     Extract the value of a certain field out of a character vector
     such as in the "attributes" column of a GFF table.

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

     getAttributeField(x, field, attrsep=";") 

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

       x: character vector.

   field: character vector of length 1, containing the field name.

 attrsep: character vector of length 1, containing the separator name.

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

     See example.

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

     Character vector.

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

     W. Huber <huber@ebi.ac.uk>

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

       acol = c("ID=46891;Name=TEL01L-TR;Note=Bla",
        "ID=46892;Name=TEL01L;Note=Di",
        "ID=46893;Name=TEL01L-XR;Note=Bla")

       getAttributeField(acol, "Name")
       getAttributeField(acol, "ID")

