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-06 21:25:15 rCBA: initialized
2019-04-06 21:25:15 rCBA: data 20x5
	 took: 0.01  s
Evaluate: 0.08337367110831295,0.7771913125038368,4
Apr 06, 2019 9:25:15 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:15 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 29
Rules: 11
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0733584372484486,0.6430027242462303,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 29
Rules: 11
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.061323703111139306,0.6137828936325564,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 29
Rules: 11
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.058793051844703445,0.4934043169242503,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 223
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05467570639782072,0.4008237098268432,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 223
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04691629074742502,0.3641997141773518,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 223
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04240998138365292,0.34678143088811864,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 225
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03401105075936559,0.3253837291246602,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 225
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0332643491974831,0.3129939073121636,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 225
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.029053793414068944,0.280489585714394,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 226
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.024256346043877573,0.23652325620226783,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.019658581288235662,0.19568812143399308,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.01600580072584244,0.18673635245356404,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.01452687592019109,0.17102376632483757,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.012214129219116453,0.16777678722246386,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.010336783919698061,0.1381878405135118,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.009995738393304796,0.12302199257803875,4
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:16 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.008007434484625296,0.10044640161727428,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.007012548590295891,0.09487418435854683,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.005783744581381872,0.09158071344377491,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.005708136318987087,0.07983528411834732,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.005150724796119809,0.06687785964354652,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.004826039546473296,0.06503249780441875,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.004737884101455719,0.05218679513943482,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.004550949005167472,0.04804949354151718,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.004272310579174925,0.045978485979541794,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0038163248149673088,0.04000409565095009,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0031089080217527407,0.03831719183781626,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.002908278624746853,0.030972689020578356,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0028373276520346556,0.02749129778235957,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.002751810069886356,0.02544442107561354,4
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Apr 06, 2019 9:25:17 PM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (55)
Frequent patterns: 466
Rules: 228
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
2019-04-06 21:25:17 rCBA: rules 0
	 took: 1.91  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