I'd like to get clusters with a maximum inner distance threshold.
Now I use
hc <- hclust(d) and
But I would like to use something like in python:
>>> cl = HierarchicalClustering(data, lambda x,y: abs(x-y)) >>> cl.getlevel(10) # get clusters of items closer than 10
How can I get this in R?