massimoaria / pubmedR

Gathering metadata about publications, patents, grants, clinical trials and policy documents from PubMed database
Other
35 stars 13 forks source link

Upper Case Words Only #11

Closed felippelazar closed 5 months ago

felippelazar commented 5 months ago

Hi,

Is there any option to choose the case of the letters when downloading?

`#-- Using PubmedR

Defining API Key

api_key = NULL

Creating Query

query <- 'Cancer[title/abstract] AND RCT [title/abstract] AND 2022:2022[DP]'

Checking Total Count

pmQueryTotalCount(query = query, api_key = api_key) numberArticles <- pmQueryTotalCount(query = query, api_key = api_key)$total_count

Downloading Articles

D <- pmApiRequest(query = query, limit = numberArticles, api_key = NULL) M <- pmApi2df(D) `

The abstract and title text are all upper cased. Although we could transform it after, some uppercase abbreviations are lost.

Thank you in advance,

Felippe

felippelazar commented 5 months ago

Reading the code, the solution was just setting format to something different from 'bibliometrix'.

Thanks,

Felippe