pmQueryTotalCount: Count the number of documents returned by a query

Description Usage Arguments Value See Also Examples

View source: R/pmQueryTotalCount.R

Description

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

Usage

1
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
web_history The web history object. The NCBI provides search history features, which isuseful for dealing with large lists of IDs or repeated searches.

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

See Also

pmApiRequest

pmApi2df

Examples

1
2
3
query <- "bibliometric*[Title/Abstract] AND english[LA]
           AND Journal Article[PT] AND 2000:2020[DP]"
D <- pmQueryTotalCount(query = query, api_key = NULL)

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