StrKclust {GrpString} | R Documentation |
K-means clustering of a group of strings
Description
StrKclust discovers clusters of the strings in a group.
Usage
StrKclust(strings.vec, nclust = 2, nstart = 1, shade = FALSE)
Arguments
strings.vec |
String Vector. |
nclust |
Number of clusters. Default is 2. |
nstart |
Number of random data sets chosen to start. Default is 1. |
shade |
Whether shade the ellipses in the cluster plot or not. Default is false. |
Value
Returns a data frame with the specific cluster assigned to each string.
A cluster plot is also exported.
See Also
Examples
# Simple strings
strs3.vec <- c("ABCDdefABCDa", "AC3aABCD", "ACD1AB3", "xYZfgAxZY", "gf56xZYx", "AkfxzYZg")
StrKclust(strs3.vec)
[Package GrpString version 0.3.2 Index]