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-03-10 23:38:57 rCBA: initialized
2019-03-10 23:38:57 rCBA: data 20x5
	 took: 0.01  s
Evaluate: 0.42330170010910495,0.9239330185756801,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM 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.373865251220725,0.9205963608580567,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM 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.3362571777781998,0.7666292065951289,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (2)
Frequent patterns: 2
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.273908744532039,0.7497035096095198,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.26551809883286803,0.6681785501130496,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.24747071835420364,0.545759272390397,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.2450450122689875,0.4428679166857161,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 0
Cached
Final rules: 0
Accuracy: NaN
Best rules size: 0
Evaluate: 0.1976702050122007,0.3700443255370337,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 1
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.18306655323236143,0.3116054823241668,4
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:57 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 3
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.17796802137223985,0.3072635774473952,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 3
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.16549634984857442,0.28861723695576924,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.16039748489406677,0.24893485405863305,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.1409338486472802,0.23745151786858248,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.11447238071309628,0.2106421074270035,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0916146533694861,0.18479545193434402,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08857326548905933,0.14865947799258217,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08702440423861318,0.13242318193419625,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08222729485218527,0.12058623021311098,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.06792262124846943,0.09965420619252917,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (19)
Frequent patterns: 38
Rules: 18
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05442225950457298,0.09344641563471179,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.045436867770681934,0.07706776690489205,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.042920989623444046,0.06299384312599346,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03942666509319787,0.053684593038160776,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03807347525488937,0.04583872598351946,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03135042322354979,0.042568603367984376,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02593745851925605,0.040517930633440176,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.020924049274083006,0.032671835710376136,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.020165918409118123,0.028262683280695557,4
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:58 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.016556511206272984,0.023803442653080407,4
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.016391637433386497,0.02280169414659776,4
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.014507463346823657,0.020712376599620833,4
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 11:38:59 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (49)
Frequent patterns: 453
Rules: 224
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
2019-03-10 23:38:59 rCBA: rules 0
	 took: 1.46  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