pm.titles              package:annotate              R Documentation

_O_b_t_a_i_n _t_h_e _t_i_t_l_e_s _o_f _t_h_e _P_u_b_M_e_d _a_b_s_t_r_a_c_t_s.

_D_e_s_c_r_i_p_t_i_o_n:

     This function returns the titles from a list of PubMed abstracts.

_U_s_a_g_e:

     pm.titles(absts)

_A_r_g_u_m_e_n_t_s:

   absts: The list of PubMed abstracts. 

_D_e_t_a_i_l_s:

     It simply uses 'sapply'

_V_a_l_u_e:

     A character vector of length equal to the number of abstracts.
     Each element is the title of the corresponding abstract.

_A_u_t_h_o_r(_s):

     Robert Gentleman

_S_e_e _A_l_s_o:

     'pm.abstGrep'

_E_x_a_m_p_l_e_s:

      hoxa9 <- "37809_at"
        ## A bit of a hack to not have a package dependency on hgu95av2
        ## but need to fiddle w/ the warn level to not fail the example anyways.
        curWarn <- getOption("warn")
        options(warn=0)
        on.exit(options(warn=curWarn), add=TRUE)

      if( require(hgu95av2) ) {
         absts <- pm.getabst(hoxa9, "hgu95av2")
         pm.titles(absts)
      }

