Description Usage Arguments Value
View source: R/parse_batches.R
Read and parse doc of PubMed records and extract specified datatypes as csv's
1 2 3 4 5 6 7 8 9 10 11 12 |
input_dir |
Filepath of doc of batch of unparsed PubMed records, such as the output of |
pmids |
Vector of pmids. If pmids not user-provided, pmids will be saved as .rds. |
datatypes |
Types of data to extract from xml for which there is a corresponding "pubmed_" function ("table", "abstract", "databanks", "authors", "mesh", "keywords", "pubtypes") |
file_name |
and @param suffix If both are equal to default, |
suffix |
Suffix for file names. For example, record numbers. Defaults to NULL. |
dir |
Directory for saving files (log file and pmids.rds, and extracted csv's, depending on |
subdir |
Directory for saving extracted csv's. Defaults to |
quiet |
Whether to silence messages in console. Defaults to FALSE. |
return |
Whether to return parsed xml. Defaults to FALSE since complete batches may be too large to hold in memory and interested in only side-effect csv's. If TRUE, returns list of length number of files in |
Parsed xml with names = pmids. Also, side-effect of specified datatypes as csv's.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.