contextSearch: For Context Search

Description Usage Arguments Details Value Author(s) Examples

Description

contextSearch is a method to extract the sentences containing a given query term

Usage

1
contextSearch(object, y)

Arguments

object

An S4 object of Class Abstracts containing text abstracts

y

a character vector of term(s)

Details

It takes object of class Abstracts and query term(s) as arguments and returns a text and latex file of the sentences containing query term. The latex file can be further converted into PDF by using the system command in R i.e. system("pdflatex filename.tex"). pdflatex is a shell command in Linux to convert the latex file into PDF. In the pdf file the terms are written in bold face type to enable ease of reading

Value

contextSearch() will write two files one is a text file named "companion.txt", and other is a Latex file. If the single term is given in query then file name comes with the term name. If multiple terms are used then the file name will be "combined.tex"

Author(s)

Dr.S.Ramachandran, Jyoti Rani

Examples

1
2
## Not run: contextSearch(x, "diabetes")
## here 'x' is S4 object of class 'Abstracts', and query term is 'diabetes'.

Example output



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