Learn R Programming

easyPubMed (version 3.1.6)

EPM_prep_outfile: Map Job Batches to Filenames.

Description

Build Filenames Matching job sub-tasks. Each filename corresponds to a series of records returned by a specific job batch. The associated filename indicates where the corresponding records will be written on the local disc (if requested by the user).

Usage

EPM_prep_outfile(job_list, path, prefix)

Value

character vector pointing to the target files where Pubmed records will be written.

Arguments

job_list

data.frame. This is the `job_list` data.frame included in the `misc` slot of an `easyPubMed` object.

path

folder on the local computer where files will be saved. It must be an existing directory.

prefix

string used as common prefix for all files written as part of the same PubMed record download job.

Author

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/easypubmed/

Examples

Run this code
test_df <- data.frame(query_string = c('ANY', 'ANY'), 
                      init_date = c('2020/01/01', '2020/01/10'), 
                      end_date = c('2020/01/11', '2020/01/20'), 
                      diff_days = c(10, 10), 
                      exp_count = 100, 100)
easyPubMed:::EPM_prep_outfile(test_df, path = '.', prefix = 'my_test_job')                   


Run the code above in your browser using DataLab