[R] cclust causes R to crash when using manhattan kmeans

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Apr 7 09:33:23 CEST 2006


Timo Becker wrote:

> Dear R users,
> 
> When I run the following code, R crashes:
> 
> require(cclust)
> x <- matrix(c(0,0,0,1.5,1,-1), ncol=2, byrow=TRUE)
> cclust(x, centers=x[2:3,], dist="manhattan", method="kmeans")
> 
> While this works:
> 
> cclust(x, centers=x[2:3,], dist="euclidean", method="kmeans")
> 
> I'm posting this here because I am not sure if it is a bug.
> I've been searching for a manhattan kmeans method and I found a solution 
> by using the package amap:
> 
> require(amap)
> Kmeans(x, x[2:3,], method="manhattan")
> 
> This works for me, so I don't need the cclust package anymore.
> Anyway, I wanted to report the cclust behaviour.


Please report it to its mainatiner (CCing).

Uwe Ligges


> R version 2.2.1, 2005-12-20, i386-pc-mingw32
> 
> Cheers,
> Timo
>




More information about the R-help mailing list