myclus {SAGx} | R Documentation |
Uses a hierarchical clustering to initiate a kmeans clustering.
myclus(data = swiss, k = 3)
data |
The data matrix |
k |
the number of clusters |
a list from function kmeans
From Ripley and Venables
Venables, W.N. and Ripley, B.D (2000) Modern Applied Statistics with S-PLUS, Springer
library(MASS) data(swiss) cl <- myclus(data = swiss, k = 3) gap(swiss,cl$cluster)