ListLookup: Extract from report, using words from a list

View source: R/EndoMineR.R

ListLookupR Documentation

Extract from report, using words from a list

Description

The aim here is simply to produce a document term matrix to get the frequency of all the words, then extract the words you are interested in with tofind then find which reports have those words. Then find what proportion of the reports have those terms.

Usage

ListLookup(theframe, EndoReportColumn, myNotableWords)

Arguments

theframe

the dataframe,

EndoReportColumn

the column of interest,

myNotableWords

list of words you are interested in

See Also

Other Basic Column mutators: EntityPairs_OneSentence(), EntityPairs_TwoSentence(), ExtrapolatefromDictionary(), MyImgLibrary()

Examples

# The function relies on defined a list of
# words you are interested in and then choosing the column you are
# interested in looking in for these words. This can be for histopathology
# free text columns or endoscopic. In this example it is for endoscopic
# columns
myNotableWords <- c("arrett", "oeliac")
jj <- ListLookup(Myendo, "Findings", myNotableWords)

sebastiz/EndoMineR documentation built on Dec. 4, 2022, 7:04 p.m.