Learn R Programming

inpdfr (version 0.1.12)

getMostFreqWord: Returns most frequent words.

Description

Returns most frequent words and plots their frequencies per document.

Usage

getMostFreqWord(
  wordF,
  numWords,
  getPlot = TRUE,
  mwidth = 1024,
  mheight = 800,
  formatType = "png"
)

Value

The numWords most frequent words.

Arguments

wordF

The data.frame containing word occurrences.

numWords

The number of words to be returned.

getPlot

If TRUE, save a scatter plot in the RESULTS directory.

mwidth

The width of the plot in pixels.

mheight

The height of the plot in pixels.

formatType

The format for the output file ("eps", "pdf", "png", "svg", "tiff", "jpeg", "bmp").

Examples

Run this code
data("wordOccuDF")
getMostFreqWord(wordF = wordOccuDF, numWords = 5, getPlot = FALSE)

Run the code above in your browser using DataLab