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-07 10:32:53 rCBA: initialized
2019-03-07 10:32:53 rCBA: data 20x5
	 took: 0  s
Evaluate: 0.25932050671022033,0.6362262096218674,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 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.22002528376295016,0.5971656050883882,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM 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.1827639888012827,0.5694137657394789,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM 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.16494810506815907,0.564224646649059,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 2
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.15092742513439783,0.46280586607595603,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 2
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.13388477524199574,0.43089229193115103,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 2
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.12675961981457404,0.3713000658666746,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (7)
Frequent patterns: 9
Rules: 2
Cached
Final rules: 3
Accuracy: NaN
Best rules size: 0
Evaluate: 0.11358364127065847,0.3339167999130856,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 32
Rules: 13
Cached
Final rules: 5
Accuracy: NaN
Best rules size: 0
Evaluate: 0.09324762596364594,0.28308929251862786,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 32
Rules: 14
Cached
Final rules: 5
Accuracy: NaN
Best rules size: 0
Evaluate: 0.07633436136563324,0.28078903113912584,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 32
Rules: 14
Cached
Final rules: 5
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0652120037703857,0.2344089354661805,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 32
Rules: 14
Cached
Final rules: 5
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0599704482334559,0.19243990609112913,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (17)
Frequent patterns: 32
Rules: 14
Cached
Final rules: 5
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05408761702934638,0.15438583924939722,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.05136818439665723,0.1254714190010229,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.047703580630300356,0.1239479006888108,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.04718777317073097,0.11578511998738845,2
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:53 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03985008274225316,0.09337098887459137,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.039749596757249296,0.0838401628983944,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.03265790653797284,0.07207284288221374,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.030701783189426117,0.05998373009179752,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.029205304384147222,0.050941635059037094,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.029057526113712078,0.0470046965125573,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.028183577923088402,0.046554134357876364,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.025425110512630963,0.03881886359367983,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.022522141001868837,0.038408523888200916,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.0183497326900849,0.030759705064271965,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.016001804557211025,0.030679800906268418,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.013313601011224993,0.02898655063482422,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.012734642427844813,0.028424277046237414,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.012126768889678879,0.023014650884643155,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
Evaluate: 0.01013518756090508,0.019763700792112242,2
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: start
Mar 07, 2019 10:32:54 AM cz.jkuchar.rcba.fpg.FPGrowth run
INFO: FPG: tree built (50)
Frequent patterns: 202
Rules: 57
Cached
Final rules: 10
Accuracy: NaN
Best rules size: 0
2019-03-07 10:32:54 rCBA: rules 0
	 took: 1.38  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