I have a 2D dataset imported in R - (x,y)
coordinates. I want to perform k-means clustering on this dataset, but I would like to set concrete coordinates to be initial centers. For example, I would like to start with 5 centers with their values to be (5, 10), (3, 8), (46, 22), (87, 66), (39, 41)
.
I saw a centers parameter in kmeans function, but I do not understand how to set my values to be centeres.
kmeans(data, centers = ...) # what to set here?