[R] distance in kmeans algorithm?

Arnau Mir arnau.mir at uib.es
Sun Jul 9 19:21:47 CEST 2006


Is it possible to choose the distance in the kmeans algorithm?

I have m vectors of n components and I want to cluster them using kmeans
algorithm but I want to use the Mahalanobis distance or another distance.

How can I do it in R?
If I use kmeans, I have no option to choose the distance.

Thanks in advance,


More information about the R-help mailing list