how to find k value for k means clustering using r code example Example: k means clustering r R function kmeans()