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 it works…

Let's take a look at the preceding process sequentially:

  1. The initial phase was doing the PubMed search through the pubmed.mineR library.
  2. The search keyword is converted into the PubMed search_query term using the EUtilsSummary() function.
  3. Once the search_query term has been created, it parses through EUtilsGet() to get the actual search result from PubMed. The search results are extracted into an object.
  4. Later on, the abstract text has been retrieved, and a vector has been created.
  5. Once the vector of the text data has been created, the pre-processing step began from here. Using the tm library, you have created the corpus of the abstract by giving the vector input by the following code line:
 AbstractCorpus <- Corpus(VectorSource(abstracts)) ...
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