I am performing a k-means cluster analysis on a data frame with 62 variables: Tapping number 1-62 and 75000 columns. How can I organize the data frame into individual clusters?
I used fviz_cluster to visualize the clusters:
r_fit = kmeans(pressure_rotate, 5, nstart = 25)
fviz_cluster(r_fit,data = pressure_rotate)
and I was able to access a table for which variable belongs to which cluster with r_fit$cluster command, but how can I reorganize the data so that I can see what each cluster contains? Like something along the lines of:
cluster 1: Tapping number 3, Tapping number 5, Tapping number 12, ...
cluster 2: Tapping number 7, tapping number 9, ....
etc