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-17 00:05:43 rCBA: initialized
2019-04-17 00:05:43 rCBA: data 20x5
	 took: 0  s
Evaluate: 0.70533924078126,0.8501662868113758,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.5750689697777445,0.6973300175837484,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.568873131615199,0.6854457547559368,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.5390961428719351,0.586666758643158,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.4640909941005829,0.48951076363005175,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.4332032630473027,0.4096247246099479,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.3839365894181687,0.348142847036084,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.3123969681057257,0.2990887958051929,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.2870181213006036,0.29659241721173674,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (4)
Frequent patterns: 4
Rules: 2
Cached
Final rules: 1
Accuracy: NaN
Best rules size: 0
Evaluate: 0.25355872200540275,0.28462098068745056,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.21212452838030274,0.23666502103471898,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.18120864746211582,0.20048543181851056,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 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.16825594126614873,0.1942667896292747,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.16322733265670236,0.15993857282798055,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.1327511147096654,0.1453143258834755,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12521342760838544,0.13917101030597012,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12516404539969708,0.131516120951424,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12229944959953241,0.1292199066250862,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 5
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.11739536165980842,0.1289727792451622,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 30
Rules: 14
Cached
Final rules: 6
Accuracy: NaN
Best rules size: 0
Evaluate: 0.10875033642588387,0.10405698351905303,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 30
Rules: 14
Cached
Final rules: 6
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09123196475351275,0.08981233779125912,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 30
Rules: 14
Cached
Final rules: 6
Accuracy: NaN
Best rules size: 0
Evaluate: 0.07352357408120697,0.07326013097588749,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 30
Rules: 14
Cached
Final rules: 6
Accuracy: NaN
Best rules size: 0
Evaluate: 0.06229371713962824,0.07314984830094849,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 30
Rules: 14
Cached
Final rules: 6
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05031582095386978,0.05965932017344791,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04028169323970082,0.05724224528727555,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03659850717834981,0.04659083790363305,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03499798923385959,0.042139275894867996,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.030081224827689726,0.041365015063504415,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02625953630954218,0.035167412325229234,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.021975727084531604,0.03288996472552405,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0191544103916291,0.030681453954556393,2
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 17, 2019 12:05:43 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (51)
Frequent patterns: 204
Rules: 57
Cached
Final rules: 8
Accuracy: NaN
Best rules size: 0
2019-04-17 00:05:44 rCBA: rules 0
	 took: 0.36  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