co_occurrence_fn {pubmed.mineR} | R Documentation |
Extracts sentences with co-occurrence of two sets of terms
Description
co_occurrence_fn
will automatically extract sentences with co-occurrence of two sets of terms.
Usage
co_occurrence_fn(terms1, abs, filename, terms2)
Arguments
terms1 |
a character vector of terms. |
abs |
an S4 object of class Abstracts |
filename |
a single character, filename |
terms2 |
a character vector of terms. |
Details
Sentences with co-occurrence of two terms will be extracted along with the corresponding PMIDs. The data will be written in a text file with the user given filename and the word co_occurrence will be suffixed to it.
Value
A text file.
Author(s)
S.Ramachandran
Examples
## Not run: co_occurrence_fn("resistance",myabs,"resistance_genetic",c("genes","genetic")
##
[Package pubmed.mineR version 1.0.20 Index]