Load Customers.csv file
Choose column 4 and 5
Calculate the Distance matrix by Euclidean distance
Use the hclust function to find the optimal number of clusters
Plot your results
Cut Dendrogram to 5 subtrees to Define Clusters
#Draw 3 rectangles around the clusters on the dendrogram (Divide your entire dataset into 3 cluster)
Just the solution of the problem
New contributor
Ansh-info is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.