The below code produces the following error that should not occur:
Error in kmeans(x = df, centers = k, iter.max = iter.max, nstart = nstart, : more cluster centers than distinct data points.
X <- iris[,1:4]
out <- ICSClust(X, nb_clusters = 2, criterion = "var_crit")
The below code produces the following error that should not occur:
Error in kmeans(x = df, centers = k, iter.max = iter.max, nstart = nstart, : more cluster centers than distinct data points.