fpgrowth error in R

时间:2018-06-19 11:14:49

标签: r apriori fpgrowth

I am trying to fit a fpgrowth model on a in-built data set called Adult. While fitting a model, I was getting an error as shown below.

Error in .jcall(jPruning, "[[Ljava/lang/String;", "fpgrowth", support,  : 
method fpgrowth with signature (DDI)[[Ljava/lang/String; not found

I used the below R code to fit fpgrowth model.

library(rCBA)
data("Adult")
Adult<-as(Adult,"transactions")
rules = rCBA::fpgrowth(Adult, support=0.001, confidence=0.5, maxLength=2)

What's wrong with the above code?

Thanks in advance.

1 个答案:

答案 0 :(得分:0)

您必须指定“班级”或后续的

Debug

尝试一下: https://rdrr.io/cran/rCBA/src/R/fpgrowth.R