'How do I implement k++ means initalization method in R programming language to choose the values of my set seed?

I have a large dataset (9779 entries) and I'm trying to group the data points based on three variables into 8 clusters, as indicated by the gap method I used to find the optimal number of clusters.

I see that K++ means is a popular way of finding out the right values for setseed for centroid initialisation for each cluster, but I can't figure out how to do it in R. So how would you do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source