Skip to content

Writing a search query for multiple conditions #10

@OleksiyAnokhin

Description

@OleksiyAnokhin

Hi team, thanks for a great package.

A quick question:

I want to extract information by name of the journal, time period, and first/last name of the author.
I have 10000 names, 3 years, and 5 journals. Is it possible to write a query like this in your package

Ideal example:

list_of_authors <- ("Joe Doe", "Joe Smith")
list_of_journals <- ("Radiology, "Oncology")
years <- (2019, 2020, 2021)
new_query <- 'List of authors AND list of journals AND years' 
out.A <- batch_pubmed_download(pubmed_query_string = new_query, 
                           format = "xml", 
                           batch_size = 100,
                           dest_file_prefix = "test",
                           encoding = "ASCII")

Several separate queries would be fine but not thousands!

Any suggestions are greatly appreciated!

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