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-29 07:18:34 rCBA: initialized
2019-03-29 07:18:34 rCBA: data 20x5
	 took: 0  s
Evaluate: 0.25114743846838705,0.6671225799821563,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM 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.23186753054222245,0.5817852023478663,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM 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.19437588089217203,0.5390563555503346,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM 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.16234892280907212,0.45007860131615685,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 1
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.13820195761157564,0.3709334358656619,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 1
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12194336689421233,0.34071229013297344,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 3
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.1195286683033587,0.3025515001182217,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (6)
Frequent patterns: 7
Rules: 3
Cached
Final rules: 2
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09632252957800555,0.29820704405565557,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 13
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09429891663957223,0.2925912843857195,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 14
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08556936394012357,0.2562752338706718,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 14
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.08241119077562888,0.22527930719846853,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 14
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.07376585660473514,0.20151696672357355,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 14
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05981397952809626,0.19323892862648265,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (16)
Frequent patterns: 28
Rules: 14
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04791794180714687,0.18926166646072307,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04732399425036848,0.17407535374215422,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04277647286983465,0.15670714370853442,2
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:34 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03484195044500548,0.12872375315661122,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03089931213669697,0.12185645232798213,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.026925333204920618,0.1005829697457087,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.025553649107380158,0.090155275503535,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02478317556019842,0.07608156803780666,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.020987218275638694,0.0622274049310128,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.02020598969428444,0.053471490659220744,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.01796154759182438,0.046050903473727325,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.017354926484819358,0.044384938299051685,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.01622785282849556,0.03613060923657122,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.015603160600026596,0.03563241991261755,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.013328641245142861,0.03076500270233665,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.010903244785681727,0.02838141369039094,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.009678529248607086,0.02526460201517569,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
Evaluate: 0.009017565583933393,0.021944531597520005,2
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 29, 2019 7:18:35 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (53)
Frequent patterns: 210
Rules: 59
Cached
Final rules: 9
Accuracy: NaN
Best rules size: 0
2019-03-29 07:18:36 rCBA: rules 0
	 took: 1.58  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