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…

Let's perform the following steps to perform a PubMed literature search using R:

  1. Load the pubmed.mineR and RISmed libraries into your R session.
  2. Create an object containing keywords.
  3. Parse the keyword term to create a query term into the form of PubMed search_query.
  4. Parse the search_query term to get the search results.
  5. Retrieve the relevant information from the output objects.

Here is the code to perform the preceding tasks mentioned:

        library(pubmed.mineR)        library(RISmed)        keyword <- "Deep Learning"        search_query <- EUtilsSummary(keyword, retmax=10)        summary(search_query)        fetch <- EUtilsGet(search_query)
  1. The fetch object contains all the information you might be interested in. Here is the list of objects that you can extract ...
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