ExtrapolatefromDictionary: Extrapolate from Dictionary

View source: R/Basic_CleanUp.R

ExtrapolatefromDictionaryR Documentation

Extrapolate from Dictionary

Description

Provides term mapping and extraction in one. Standardises any term according to a mapping lexicon provided and then extracts the term. This is different to the DictionaryInPlaceReplace in that it provides a new column with the extracted terms as opposed to changing it in place

Usage

ExtrapolatefromDictionary(inputString, list)

Arguments

inputString

The text string to process

list

of words to iterate through

See Also

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

Examples

#Firstly we extract histology from the raw report
# The function then standardises the histology terms through a series of
# regular expressions and then extracts the type of tissue 
Mypath$Tissue<-suppressWarnings(
suppressMessages(
ExtrapolatefromDictionary(Mypath$Histology,HistolType()
)
)
)
rm(MypathExtraction)

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