O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing cluster analysis using hierarchical clustering

Hierarchical clustering builds a hierarchy of clusters either through the agglomerative or divisive method.

Both these methods use a distance similarity measure to combine or split clusters. The recursive process continues until there is only one cluster left or you cannot split more clusters. Eventually, a dendrogram can be used to represent the hierarchy of clusters.

In this recipe, we will demonstrate how to cluster European protein consumption with hierarchical clustering.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required