rock dataset in r apply k means cluster code example Example: k means clustering r R function kmeans()