Wrapper around stats::hclust() for clustering a profession distance
matrix. Returns the hclust object which can be plotted as a
dendrogram or cut into groups with stats::cutree().
Arguments
- distance
A
distobject, typically fromcompute_profession_distance().- method
Character, agglomeration method passed to
stats::hclust(). Default:"complete". Other options:"ward.D2","average","single", etc.