[R] Help with CCLUS
    Uwe Ligges 
    ligges at statistik.tu-dortmund.de
       
    Tue Nov 25 10:10:39 CET 2008
    
    
  
Erik Porfeli wrote:
> Hi,
> 
> I am using the following syntax to enter data and perform a cluster analysis:
> 
> x <- read.table ("clstrdbt.csv", header=TRUE, sep = ",",fill = TRUE)
> cl<-cclust(x,4,20,verbose=TRUE,method="kmeans")
> 
> This is the result I receive:
> 
> Error in cclust(x, 4, 20, verbose = TRUE, method = "kmeans") :
>   (list) object cannot be coerced to type 'double'
Your x is some data.frame, but according to ?cclust (it is more or less 
obviously from package cclust, which you have not told us) you need a 
matrix.
Best,
Uwe Ligges
> Please help.
> 
> Regards,
> Erik
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
    
    
More information about the R-help
mailing list