Created
July 12, 2013 11:23
-
-
Save dwinter/5983728 to your computer and use it in GitHub Desktop.
Fetch abstracts using rentrez
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rentrez) #written for devel-version on github | |
fetch_abstract <- function(doi){ | |
search <- entrez_search(term=paste(doi, "[doi]", sep=""), db="pubmed") | |
rec <- parse_pubmed_xml(entrez_fetch(db="pubmed", id=search$ids, rettype="xml")) | |
return(rec$abstract) | |
} | |
fetch_abstract("10.1111/j.1461-0248.2010.01509.x") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Beautiful. Make sure you install development version of package github