I have a data frame with given structure.
District Value1 Value2 Value3
X 1200 1500 1420
Y 1456 1458 1247
Z 1245 1689 1200
I used K-means function in R to cluster Value1, Value2 and Value3 but that was not enough to find out which district falls in which cluster. I want to find out the cluster each district falls in, like:
District: X Y Z
Cluster: 1 2 1
How do I do this in R?