pmApi2df: Convert xml PubMed bibliographic data into a dataframe

Description Usage Arguments Value See Also Examples

View source: R/pmApi2df.R

Description

It converts PubMed data, downloaded using Entrez API, into a dataframe

Usage

1
pmApi2df(P, format = "bibliometrix")

Arguments

P

is a list following the xml PubMed structure, downloaded using the function pmApiRequest.

format

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.

Value

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

See Also

pmApiRequest

pmQueryTotalCount

Examples

1
2
3
4
5
6
7
# Example: Querying a collection of publications


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)

pubmedR documentation built on July 9, 2020, 5:08 p.m.