co_occurrence_fn: 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.
Value
A text file.
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.