Learn R Programming

inpdfr (version 0.1.12)

doKmeansClust: Performs a k-means cluster analysis on the basis of the word-occurrence data.frame.

Description

Performs a k-means cluster analysis on the basis of the word-occurrence data.frame using kmeans function.

Usage

doKmeansClust(
  wordF,
  nbClust = 4,
  nbIter = 10,
  algo = "Hartigan-Wong",
  getPlot = TRUE,
  mwidth = 800,
  mheight = 800,
  formatType = "png",
  ...
)

Value

An object of class kmeans (see kmeans).

Arguments

wordF

The data.frame containing word occurrences.

nbClust

The number of clusters.

nbIter

The number of iterations allowed.

algo

The algoritm used (see kmeans).

getPlot

If TRUE, save the k-means cluster 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").

...

Additional arguments from the kmeans function.

Examples

Run this code
data("wordOccuDF")
doKmeansClust(wordF = wordOccuDF, nbClust = 2, getPlot = FALSE)

Run the code above in your browser using DataLab