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
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