kmean with various variable types in r code example Example: k means clustering r R function kmeans()