1

我正在尝试在 R 中对一些数据进行聚类,并使用 Renjin 从 Java 调用 r 函数。

这一切都适用于距离函数的计算:

 this.engine.eval("dis<-dist(myMatrix, \"binary\")");

但是,当我尝试进行实际聚类时:

  this.engine.eval("clus<-hclust(dis)");

我得到:

Exception in thread "AWT-EventQueue-0" org.renjin.eval.EvalException: object 'C_hclust' not found

谷歌并没有详细说明这一点。甚至有可能解决这个问题,还是用 renjin 进行集群根本不起作用?我知道 renjin 仍然有点实验性,但我认为集群至少在 R 中是相当基本的。

4

0 回答 0