Hi all,

The problem is solved uninstalling the R and restarting the system and 
installing it again. I don't know what caused the error but reinstalling the 
R was not enough and the system must be restarted.

Thanks
Farid


-----Original Message-----

From: "Farid Seifi" <fa...@comp.iust.ac.ir>

To: R-help@r-project.org

Date: Sat, 15 Aug 2009 20:02:42 +0330

Subject: [R] Error in running RWeka Clusteres




Hi,



I have a question about using RWeka Clusterers.If you could supply answer or 


insight, I would really appreciate it.



When I run a simple code which uses a clusterer from RWeka I get an error. 

the sample codes and errors are mentioned below  



Code:

library(RWeka)

Cobweb(iris[,-5],control=NULL)



Error:

Error in names(class_ids) <- nms :

'names' attribute [150] must be the same length as the vector [0]

In addition: Warning message:

In is.nan(class) : is.nan() applied to non-(list or vector) of type 'NULL'





another example of such an error is:



Code:

library(RWeka)

cl1 <- SimpleKMeans(iris[, -5], Weka_control(N = 3))



Error:

Error in names(class_ids) <- nms : 

  'names' attribute [150] must be the same length as the vector [0]

In addition: Warning message:

In is.nan(class) : is.nan() applied to non-(list or vector) of type 'NULL'



I even copied the last code from Package RWeka manual but it still has the 

problem. for all clusterers in RWeka I have the same problem. I also used 

make_Weka_clusterer but the same error occures. I used different data sets 

and again the same error. I'm using R version 2.9.1

How can I use the clusterers of RWeka without any error? I'd really 

appreciate it if you could help me on this problem.



Thank you,

- Farid



   [[alternative HTML version deleted]]



______________________________________________

R-help@r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-help 
[https://stat.ethz.ch/mailman/listinfo/r-help]

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 
[http://www.r-project.org/posting-guide.html]

and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to