Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

How to do it…

The whole process involves the following specific tasks:

  1. Specify the search keyword.
  2. Create PubMed search_query from the keyword.
  3. Perform the search and limit it to the first 50 articles.
  4. Extract the abstract texts and store them in an object.

Here is the code to do the preceding task:

        library(pubmed.mineR)        library(RISmed)        keyword <- "Deep Learning"        search_query <- EUtilsSummary(keyword, retmax=50)        summary(search_query)        extractedResult <- EUtilsGet(search_query)        pmid <- PMID(extractedResult)        years <- YearPubmed(extractedResult)        Jtitle <- Title(extractedResult)        articleTitle <- ArticleTitle(extractedResult)        abstracts <- AbstractText(extractedResult)

Once you have the abstracts in your R session, the next step is to do the pre-processing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content