[R] distance in the function kmeans

n.bouget n.bouget at laposte.net
Fri May 28 09:37:35 CEST 2004


Hi,
I want to know which distance is using in the function kmeans
and if we can change this distance. 
Indeed, in the function pam, we can put a distance matrix in
parameter (by the line "pam<-pam(dist(matrixdata),k=7)" ) but
we can't do it in the function kmeans, we have to put the
matrix of data directly ...
Thanks in advance,
Nicolas BOUGET





More information about the R-help mailing list