Running examples in ‘rCBA-Ex.R’ failed
The error most likely occurred in:

> ### Name: frameToRules
> ### Title: Conversion of 'data.frame' to 'rules' from 'arules'
> ### Aliases: frameToRules
> 
> ### ** Examples
> 
> library("rCBA")
> data("iris")
> 
> output <- rCBA::buildFPGrowth(iris[sample(nrow(iris), 20),], "Species", parallel=FALSE)
2019-04-08 01:31:52 rCBA: initialized
2019-04-08 01:31:52 rCBA: data 20x5
	 took: 0  s
Evaluate: 0.6368610062391132,0.14330723398875822,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.5234506362291225,0.14329251888081626,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.4723193408771057,0.11987707900873935,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.45786048687155484,0.10421412429457459,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.4341882466095486,0.09896063109440306,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.3824743283902349,0.08450734844961251,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (0)
Frequent patterns: 0
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.3151164796867432,0.07355242653304288,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (2)
Frequent patterns: 2
Rules: 2
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.3116890921377509,0.07069980812033907,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (2)
Frequent patterns: 2
Rules: 2
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.25874310227967756,0.0663590194615205,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.24939860387371804,0.05665180647411061,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.23003210162523088,0.05585252619317607,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 5
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.1843849466451675,0.0546475897241352,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 5
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.15733759964855737,0.04826777019576873,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 6
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12957394083106988,0.04762506456596589,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 6
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.11024922915909774,0.04529267336830153,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09991248348964604,0.04279092269562247,1
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08803650151023665,0.03789059931004564,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.07530331266339867,0.03369023886574777,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.06998150594358085,0.031208645550554106,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0600631092982817,0.02546341414268292,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (15)
Frequent patterns: 15
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.050554876299349585,0.02139393240034671,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04049259947862166,0.017335830400305285,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.037083975401462965,0.0160723963433188,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03411342963126446,0.01479341057353804,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02730590820918404,0.012892172140632726,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.026593741515250055,0.012347671618378651,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02584671299621079,0.010520617181896374,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02243241660879247,0.009136120238915503,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.019990653464333312,0.008251907581015414,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.016735895069696766,0.00709096196349236,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.015285304936020715,0.006212543838609865,1
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 08, 2019 1:31:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 53
Rules: 3
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
2019-04-08 01:31:53 rCBA: rules 0
	 took: 0.65  s
> model <- as(output$model,"data.frame")
> 
> rules <- rCBA::frameToRules(model)
Error in `[.data.frame`(model, , 2:4) : undefined columns selected
Calls: <Anonymous> -> [ -> [.data.frame
Execution halted