We will be using the palmerpenguins data set for this lab.
You will also be needing to load the broom package
- Transform the data set into a matrix using two of the numeric variables
- Perform k-means using 3 clusters
- Look at the result object with
summary(), names(), and str().
- Use
augment(), glance() and tidy() to extract information from the model
- Plot the clusters with your package of choice
- Rerun The previous steps with more variables and different values of \(K\)
- Construct an Elbow Chart to find an appropriate number of clusters for the data set