You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use keywords(e.g. PTEN), database (pubmed), limit of the number of results (e.g. 500)
library(RISmed)
res <- EUtilsSummary("PTEN", type="esearch", db="pubmed", retmax=500)
3. Download the results of your query
EUtilsGet(res,type="efetch",db="pubmed")
QueryCount(res) # No. of results returned
summary(res) # Summary of your query
4. Gather information for your output file
y <- YearPubmed(EUtilsGet(res)) # Year of publication
t<-ArticleTitle(EUtilsGet(res)) # Title
a <-AbstractText(EUtilsGet(res)) # Abstract
Authors
at <- Author(EUtilsGet(res))
at1 <-lapply(at, `[[`, 1) # Extract the first row of each list because I only need the 1st author
at_first<-lapply(at1, `[[`, 1) # Extract the first element of each row
at_first_row <- as.data.frame(at_first) # Format as dataframe
at_first_column <- t(at_first_row) # Convert row to column using transpose t()