Associative Classification in R: arc, arulesCBA, and rCBA

Several methods for creating classifiers based on rules discovered via association rule mining have been proposed in the literature. These classifiers are called associative classifiers and the best-known algorithm is Classification Based on Associations (CBA). Interestingly, only very few implementations are available and, until recently, no implementation was available for R. Now, three packages provide CBA. This paper introduces associative classification, the CBA algorithm, and how it can be used in R. A comparison of the three packages is provided to give the potential user an idea about the advantages of each of the implementations. We also show how the packages are related to the existing infrastructure for association rule mining already available in R.

Michael Hahsler , Ian Johnson , Tomáš Kliegr , Jaroslav Kuchař

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at

CRAN packages used

arc, arulesCBA, rCBA, RWeka, arules, arulesViz, qcba, sbrl, RKEEL, discretization, Matrix, qCBA, matrix, rJAVA, mlbench, datasets

CRAN Task Views implied by cited packages

MachineLearning, ModelDeployment, Econometrics, Multivariate, NaturalLanguageProcessing, NumericalMathematics


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Hahsler, et al., "The R Journal: Associative Classification in R: arc, arulesCBA, and rCBA", The R Journal, 2019

BibTeX citation

  author = {Hahsler, Michael and Johnson, Ian and Kliegr, Tomáš and Kuchař, Jaroslav},
  title = {The R Journal: Associative Classification in R: arc, arulesCBA, and rCBA},
  journal = {The R Journal},
  year = {2019},
  note = {},
  doi = {10.32614/RJ-2019-048},
  volume = {11},
  issue = {2},
  issn = {2073-4859},
  pages = {254-267}