getWordFrequency: getWordFrequency

Description Usage Arguments Value Examples

Description

This function accepts corpus as defined by the tm package and analyzes word frequency.

Usage

1
2
3
4
5
getWordFrequency(literatureCorpus = "", omitStop = TRUE,
  omitUselessTerms = TRUE, firstWordRankInPlot = 1,
  lastWordRankInPlot = 30, freqPlot = TRUE,
  uselessTerms = c("result", "fig", "tabl", "use", "research", "total",
  "can"))

Arguments

omitStop

omit strop words (T/F)

omitUselessTerms

omit terms which are useless to the analysis (T/F)

firstWordRankInPlot

first number of word to plot in ranked list

lastWordRankInPlot

last number of word to plot in ranked list

freqPlot

produce a frequency plot (T/F)

uselessTerms

terms which do not improve the analysis

corpusToPrepare

the input corpus to prepare for text analysis

Value

a corpus object containing prepared text of the original corpus

Examples

1
getCorpus(corpusToPrepare)

JerryHMartin/scientificLiteratureMining documentation built on July 29, 2020, 4:11 p.m.