A wrapper function to run hierarchical clustering

run_hclust(x, method = "complete", dmeth = "euclidean")

Arguments

x

Data frame to run hierarchical clustering

method

Specify method for hierarchical clustering. See ?hclust for details

dmeth

Specify method for calculating distance. See ?dist for details

Examples

library(magrittr)
library(dplyr)
iris %>% select(-Species) %>% run_hclust()
#> 
#> Call:
#> hclust(d = dist(x, method = dmeth), method = method)
#> 
#> Cluster method   : complete 
#> Distance         : euclidean 
#> Number of objects: 150 
#>