doKmeansClust {inpdfr} | R 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 |
getPlot |
If |
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 |
Value
An object of class kmeans (see kmeans
).
Examples
data("wordOccuDF")
doKmeansClust(wordF = wordOccuDF, nbClust = 2, getPlot = FALSE)
[Package inpdfr version 0.1.12 Index]