getMostFreqWordCor: Test for correlation between the most frequent words.

View source: R/inpdfr_ANA_freqWordCor.R

getMostFreqWordCorR Documentation

Test for correlation between the most frequent words.

Description

Test for correlation between the most frequent words.

Usage

getMostFreqWordCor(
  wordF,
  numWords,
  getPlot = c(TRUE, TRUE),
  getTextSink = TRUE,
  mwidth = 1024,
  mheight = 1024,
  formatType = "png"
)

Arguments

wordF

The data.frame containing word occurrences.

numWords

The number of words to be returned.

getPlot

A vector with two logical values. If plots[1]==TRUE, an image of the correlation matrix is saved in the RESULTS directory. If plots[2]==TRUE, the image of the p-value matrix associated with the correlation is saved in the RESULTS directory.

getTextSink

If TRUE, save the correlation matrix and the associated p-values in a text file 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

A list with the correlation matrix and the p-value matrix.

Examples

data("wordOccuDF")
getMostFreqWordCor(
  wordF = wordOccuDF, 
  numWords = 5, 
  getPlot = c(FALSE, FALSE), 
  getTextSink = FALSE)

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