buildPubMedAbst           package:annotate           R Documentation

_A _f_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _a_n _i_n_s_t_a_n_t_i_a_t_i_o_n _o_f _a _p_u_b_M_e_d_A_b_s_t _c_l_a_s_s

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

     This function will take in a XML tree object and will create an
     instance of a pubMedAbst class.  This instance is returned to the
     caller.

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

       buildPubMedAbst(xml)

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

     xml: A XMLTree object that corresponds to a Pubmed abstract.

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

     This function returns an instantiation of a pubMedAbst object to
     the caller.

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

     Jeff Gentry

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

     'pubmed','genbank'

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

        x <- pubmed("9695952","8325638","8422497")
        a <- xmlRoot(x)
        numAbst <- length(xmlChildren(a))
        absts <- list()
        for (i in 1:numAbst) {
           absts[[i]] <- buildPubMedAbst(a[[i]])
        }

