Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter articles from a specific data or date range #47

Open
BryanTegomoh opened this issue Apr 20, 2023 · 1 comment
Open

Filter articles from a specific data or date range #47

BryanTegomoh opened this issue Apr 20, 2023 · 1 comment

Comments

@BryanTegomoh
Copy link

I can't find an option to filter articles within a date range. An argument possibly within epmc_search() function to narrow down to a date range. Additionally, can we curate all the articles within that range instead of defining a limit?

@njahn82
Copy link
Member

njahn82 commented Sep 20, 2023

Hi @BryanTegomoh Please apologize my late reply. You could make use of the extensive Europe PMC search syntax to narrow down results to a specific date range. Europe PMC provides a great query builder.

Example: Publications about "SARS-CoV-2" published between 2023-09-01 and 2023-09-11.

library(europepmc)
epmc_search('(FIRST_PDATE:[2023-09-01 TO 2023-09-11]) AND "SARS-CoV-2"')
#> 801 records found, returning 100
#> # A tibble: 100 × 29
#>    id        source pmid     pmcid   doi   title authorString journalTitle issue
#>    <chr>     <chr>  <chr>    <chr>   <chr> <chr> <chr>        <chr>        <chr>
#>  1 37697348  MED    37697348 PMC104… 10.1… Corr… Valiente E,… BMC Res Not… 1    
#>  2 37684675  MED    37684675 PMC104… 10.1… SARS… Kohler P, D… Antimicrob … 1    
#>  3 PPR721552 PPR    <NA>     <NA>    10.1… Comp… Länsivaara … <NA>         <NA> 
#>  4 PPR721235 PPR    <NA>     <NA>    10.2… Emer… Gupta DL, R… <NA>         <NA> 
#>  5 PPR720954 PPR    <NA>     <NA>    10.2… SARS… Romeu AR.    <NA>         <NA> 
#>  6 37682927  MED    37682927 PMC104… 10.1… Diff… Jafary F, J… PLoS One     9    
#>  7 37669865  MED    37669865 PMC104… 10.2… Inhi… Soares VC, … Life Sci Al… 11   
#>  8 37655875  MED    37655875 PMC105… 10.1… Inhi… Subramaniya… Am J Respir… 3    
#>  9 37701824  MED    37701824 PMC104… 10.7… The … Si Y, Wu W,… PeerJ        <NA> 
#> 10 37684638  MED    37684638 PMC104… 10.1… Clin… Yu L, Wang … Virol J      1    
#> # ℹ 90 more rows
#> # ℹ 20 more variables: journalVolume <chr>, pubYear <chr>, journalIssn <chr>,
#> #   pageInfo <chr>, pubType <chr>, isOpenAccess <chr>, inEPMC <chr>,
#> #   inPMC <chr>, hasPDF <chr>, hasBook <chr>, hasSuppl <chr>,
#> #   citedByCount <int>, hasReferences <chr>, hasTextMinedTerms <chr>,
#> #   hasDbCrossReferences <chr>, hasLabsLinks <chr>,
#> #   hasTMAccessionNumbers <chr>, firstIndexDate <chr>, …

Created on 2023-09-20 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants