I am trying to mine data or related paper from pubmed using R using library such as "RISmed" ,"rentrez" i will post the code so far what I have done
library(RISmed) library(rentrez) library(XML) search_topic <- 'AML' search_query <- EUtilsSummary(search_topic, retmax=100, mindate=2012, maxdate=2012) QueryId(search_query) your.ids <- c("23271436","23271044","23270581","23270192","23269287")
So upto now it looks fine so my Queryid function returns me a list of article ID so I want to parse those id for abstracts ,so the ID returned is kind of large number so is there anyway so that I dont have to copy paste the ID that is returned back from QueryID function and I want to use that returned ID in the later code which is this
fetch.pubmed <- entrez_fetch(db = "pubmed", id = your.ids, rettype = "xml", parsed = T)
So can anyone help me I'm not sure if i can use the paste function or there is something else inbuilt in R.
Help would be highly appreciated