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 01:58:51 rCBA: initialized
2019-03-10 01:58:51 rCBA: data 20x5
	 took: 0  s
Evaluate: 0.19102631076493148,0.174267188198877,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 5
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.18942590491974828,0.14551509232697474,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 5
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.18593894064543817,0.14127262543588248,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 5
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.15482826475412656,0.12668038137171492,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.15186929026073734,0.10559105467338027,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.13604869167468703,0.09190803734527433,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (5)
Frequent patterns: 6
Rules: 4
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.11683060669695214,0.07965794432119261,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.10959140421715322,0.07133048266026216,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09834144124031041,0.05738721574294682,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0851158650601363,0.05668814714206756,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.07596505354743455,0.049215109034656784,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.06710892963488058,0.045618739596278754,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 30
Rules: 13
Cached
Final rules: 7
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0568412746112299,0.03911007579434034,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05078291534876144,0.03745240241556035,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.049750297926541245,0.0357901960134659,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04538638781777729,0.02912910036152343,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.045081372385145806,0.026218545169696662,2
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:51 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04179971298913344,0.024157072053487695,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.034107203401443936,0.020957602714685098,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03247093354329514,0.019739743181839707,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02944257108282016,0.0195576376776448,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02660417340504863,0.01732847696159354,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02392150919913815,0.014426971371621036,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.021015229730794262,0.012101421265299788,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.017787825791989762,0.00990720898234213,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.015615373286905003,0.009101041121546213,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.012903816556613244,0.008721236778684359,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.010341237441740486,0.007159883094538469,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.00999980917762947,0.006910392247703358,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.008120968463838515,0.006815864845154536,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.006992608224593175,0.006369204096136161,2
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 10, 2019 1:58:52 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (54)
Frequent patterns: 209
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
2019-03-10 01:58:52 rCBA: rules 0
	 took: 1.01  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