## S3 method for class 'formula':
kkmeans(x, data = NULL, na.action = na.omit, ...)## S3 method for class 'matrix':
kkmeans(x, centers, kernel = "rbfdot", kpar = list(sigma = 0.1),alg="kkmeans", p=1, na.action = na.omit, ...)
kkmeans
and kerninghan
.specc
wich extends the class vector
containing integers indicating the cluster to which
each point is allocated. The following slots contain useful informationspecc
, kpca
, kcca
## Cluster the iris data set.
data(iris)
sc <- kkmeans(as.matrix(iris[,-5]), centers=3)
sc
centers(sc)
size(sc)
withinss(sc)
Run the code above in your browser using DataLab