data mining clustering k-means distance R code example Example: k means clustering r R function kmeans()