@ Java questioner
You can access the cluster data as followed:
> data_clustered <- kmeans(data)
> data_clustered$cluster
data_clustered$cluster is a vector with the length of the original number of records in data. Each entry is for the that row.
To get all the records belonging to cluster 1:
> data$cluster <- data_clustered$cluster
> data_clus_1 <- data[data$cluster == 1,]
Number of clusters:
> max(data$cluster)
Good luck with your clustering