k means cluster = kmeans(cust_segment_data) code example Example: k means clustering r R function kmeans()