getNamedElement          package:KEGGgraph          R Documentation

_E_x_t_r_a_c_t _t_h_e _v_a_l_u_e _i_n _a _v_e_c_t_o_r _b_y _n_a_m_e

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

     The function extracts the value(s) in a named vector by given
     name(s), in case no element is found with the given name, NA will
     be returned

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

     getNamedElement(vector, name)

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

  vector: A named vector of any data type 

    name: Wanted name  

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

     The elements with the given name, 'NA' in case no one was found

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

     Jitao David Zhang <URL: mailto:j.zhang@dkfz.de>

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

     vec <- c(first="Hamburg", second="Hoffenheim",third="Bremen")
     getNamedElement(vec, "third")
     getNamedElement(vec, "last")

