Learn R Programming

pubmedR (version 0.0.3)

pmQueryTotalCount: Count the number of documents returned by a query

Description

It counts the number of documents that a query returns from the NCBI PubMed database.

Usage

pmQueryTotalCount(query, api_key = NULL)

Arguments

query

is a character. It contains a search query formulated using the Entrez query language.

api_key

is a character. It contains a valid API keys for the NCBI E-utilities. Default is api_key=NULL The use of NCBI PubMed APIs is entirely free, and doesn't necessary require an API key.

Value

a list. It contains three objects:

n The total number of records returned by the query
query_translation The query transaltion by the NCBI Automatic Terms Translation system

To obtain a free access to NCBI API, please visit: https://www.ncbi.nlm.nih.gov/pmc/tools/developers/

See Also

pmApiRequest

pmApi2df

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
query <- "bibliometric*[Title/Abstract] AND english[LA]
           AND Journal Article[PT] AND 2000:2020[DP]"
D <- pmQueryTotalCount(query = query, api_key = NULL)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab