In this machine learning with R tutorial, use k means clustering to segment customers into distinct groups based on purchasing habits.