get_clusters: Clustering groups returned as dataframe
Description
Input a distance matrix and returns a dataframe with two columns: area and clustering grouping, where a choice of clustering method is provided.
Usage
get_clusters(dist_mat, cluster_num, method)
Arguments
dist_mat
A distance matrix.
cluster_num
Number of clusters.
method
The agglomeration method that is passed to hclust. This can be chosen from the following: "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).
Value
A map upon which dialect areas are clustered.
A dataframe with the two columns area and (clustering) grouping.