Skip to contents

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().

Usage

cluster_professions(distance, method = "complete")

Arguments

distance

A dist object, typically from compute_profession_distance().

method

Character, agglomeration method passed to stats::hclust(). Default: "complete". Other options: "ward.D2", "average", "single", etc.

Value

An hclust object.