Last chance! 50% off unlimited learning
Sale ends in
kmeans
function,
and selects as the final solution the one that has the minimum total
within-cluster sum of squared distances.KMeans(x, centers, iter.max=10, num.seeds=10)
kmeans
data(USArrests)
KMeans(USArrests, centers=3, iter.max=5, num.seeds=5)
Run the code above in your browser using DataLab