doKmeansClust: Performs a k-means cluster analysis on the basis of the...

View source: R/inpdfr_ANA_cluster.R

doKmeansClustR Documentation

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

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.

Value

An object of class kmeans (see kmeans).

Examples

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

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