getMostFreqWord: Returns most frequent words.

View source: R/inpdfr_ANA_freqWordCor.R

getMostFreqWordR Documentation

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"
)

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").

Value

The numWords most frequent words.

Examples

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

frareb/inpdfr documentation built on Aug. 30, 2023, 5:24 a.m.