StrKclust: K-means clustering of a group of strings

Description Usage Arguments Value See Also Examples

View source: R/StrKclust.R

Description

StrKclust discovers clusters of the strings in a group.

Usage

1
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

StrHclust

Examples

1
2
3
# Simple strings
strs3.vec <- c("ABCDdefABCDa", "AC3aABCD", "ACD1AB3", "xYZfgAxZY", "gf56xZYx", "AkfxzYZg")
StrKclust(strs3.vec)

GrpString documentation built on May 2, 2019, 12:38 p.m.