Skip to content

Query on multiple subject areas #50

@lauravana

Description

@lauravana

The scopus_search() function seems to ignore the queries including LIMITS-TO() or EXCLUDE () in regard to SUBJAREA. As an example:

 completeArticle <- scopus_search(
    query = 'TITLE-ABS ("gender stereotypes") AND (SUBJAREA("PSYC") OR SUBJAREA ("MATH")) AND PUBYEAR = 2002',
    view = "COMPLETE", 
    count = 200)

## Total Entries are 36
## 3 runs need to be sent with current count
## |======================================================================================================================================| 100%
## Number of Output Entries are 36

returns 36 papers.

If I however copy the query from the scopus.com advanced search functionality,

 completeArticle <- scopus_search(
    query = '(LIMIT-TO ( SUBJAREA , "PSYC" ) OR LIMIT-TO ( SUBJAREA , "MATH"))',
    view = "COMPLETE", 
    count = 200)
## Total Entries are 55
## 3 runs need to be sent with current count
## |======================================================================================================================================| 100%
## Number of Output Entries are 55

the result contains 55 entries, which is the same as if no filter on the subject area were applied:

  completeArticle <- scopus_search(
    query = 'TITLE-ABS ("gender stereotypes") AND PUBYEAR = 2002',
    view = "COMPLETE", 
    count = 200)
## Total Entries are 55
## 3 runs need to be sent with current count
## |======================================================================================================================================| 100%
## Number of Output Entries are 55

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions