Nutrients in the food we consume can be classified by the role they play in building body mass. These nutrients can be divided into either macronutrients or essential micronutrients. Some examples of macronutrients are carbohydrates, protein, and fat while some examples of essential micronutrients are vitamins, minerals, and water.
Let's get started with the recipe.
In order to perform K-means clustering we shall be using a dataset collected on various food items and their respective
Iron content. The numeric variables are:
The non-numeric variable is:
Let's get into the details.