It converts PubMed data, downloaded using Entrez API, into a dataframe
pmApi2df(P, format = "bibliometrix")
is a list following the xml PubMed structure, downloaded using the function pmApiRequest
.
is a character. If format = "bibliometrix"
data will be converted in the bibliometrix complatible data format.
If format = "raw"
data will save in a data frame without any other data editing procedure.
a dataframe containing bibliographic records.
To obtain a free access to NCBI API, please visit: https://www.ncbi.nlm.nih.gov/pmc/tools/developers/
To obtain more information about how to write a NCBI search query, please visit: https://pubmed.ncbi.nlm.nih.gov/help/#search-tags
# NOT RUN {
# Example: Querying a collection of publications
# }
# NOT RUN {
query <- "bibliometric*[Title/Abstract] AND english[LA]
AND Journal Article[PT] AND 2000:2020[DP]"
D <- pmApiRequest(query = query, limit = 100, api_key = NULL)
M <- pmApi2df(D)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab