pubmed_textmining {PubMedMining} | R Documentation |
Pubmed-textmining
Description
Function for text-mining the PubMed repository based on defined sets of terms. The relationship between fixterms (related to your research topic) and pubterms (terms which pivot around your research focus) is calculated using the pointwise mutual information algorithm. A text file is generated with the pmi-scores for each fixterm. Then for each collocation pairs (a fixterm + a pubterm), a text file is generated with related article titles and publishing years. Additional Author section will follow in the next version updates.
Usage
pubmed_textmining(fixterms, pubterms, output)
Arguments
fixterms |
The input argument fixterms refers to any term that strongly relates to your focus of research. Either a string or a vector of strings. |
pubterms |
The input argument pubterms recapitulates any terms you wish to pivot around your research focus. Either a string or a vector of strings. |
output |
The output argument defines the directory you wish to store the generated text files. Default is your current location. |
Value
Returns text files with pmi-scores for each fixterm and text files for every collocation pairs bearing the article titles and publishing years. Authors will follow in the next version.
Examples
## Not run:
fixterms = c("bike", "downhill")
pubterms = c("dangerous", "extreme", "injuries")
output = getwd() #or "YOUR/DESIRED/OUTPUT/PATHWAY"
pubmed_textmining(fixterms, pubterms, output)
## End(Not run)