How do I locate a data point within a kmeans cluster in R?

I have created a kmeans cluster using

k2_mscrubbed <- kmeans(mobilesurveyco2, centers = 2, nstart = 25)

If I want to find a data point(variable within the data) that ended up in a cluster 1 or cluster 2 how can I find that?

Example of dataset(mobilesurveyco2)
ID Q1 Q2 Q3
1 15 16 17
2
3
4

How can I find out where ID 1 fell in my kmeans cluster?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.