Is it possible for us to define a custom distance function for agglomerative clustering in R? Also, I would like to prevent two clusters from being merged when a certain condition is not satisfied. Is this possible in R?Is it possible for us to define a custom distan