Description Usage Arguments Value Examples
This function accepts corpus as defined by the tm package and analyzes word frequency.
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"))
|
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 |
a corpus object containing prepared text of the original corpus
1 | getCorpus(corpusToPrepare)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.