co_occurrence_fn: Extracts sentences with co-occurrence of two sets of terms

Description Usage Arguments Details Value Author(s) Examples

Description

co_occurrence_fn will automatically extract sentences with co-occurrence of two sets of terms.

Usage

1
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

1
2
## Not run: co_occurrence_fn("resistance",myabs,"resistance_genetic",c("genes","genetic")
##

Example output



pubmed.mineR documentation built on Nov. 26, 2021, 5:11 p.m.