tidyclust icon indicating copy to clipboard operation
tidyclust copied to clipboard

Distance metric for hier_clust in tidyclust

Open JauntyJJS opened this issue 3 years ago • 1 comments
trafficstars

Hi,

I was reading the documentation of hier_clust and realise that it was using stats::hclust as the engine.

From my understanding, the input to stats::hclust requires to be a distance matrix produced by dist. Can I assume that the Euclidean distance is used by default ?

If possible, are there any plans for the function hier_clust to accept other distance metric like "manhattan", "minkowski", "pearson" or "jaccard" ?

JauntyJJS avatar Aug 17 '22 11:08 JauntyJJS

Hello @JauntyJJS 👋

That is a good idea, will be look into making that possible

EmilHvitfeldt avatar Aug 30 '22 20:08 EmilHvitfeldt