Package: arules 1.7-8

arules: Mining Association Rules and Frequent Itemsets

Provides the infrastructure for representing, manipulating and analyzing transaction data and patterns (frequent itemsets and association rules). Also provides C implementations of the association mining algorithms Apriori and Eclat. Hahsler, Gruen and Hornik (2005) <doi:10.18637/jss.v014.i15>.

Authors:Michael Hahsler [aut, cre, cph], Christian Buchta [aut, cph], Bettina Gruen [aut, cph], Kurt Hornik [aut, cph], Christian Borgelt [ctb, cph], Ian Johnson [ctb], Makhlouf Ledmi [ctb]

arules_1.7-8.tar.gz
arules_1.7-8.zip(r-4.5)arules_1.7-8.zip(r-4.4)arules_1.7-8.zip(r-4.3)
arules_1.7-8.tgz(r-4.4-x86_64)arules_1.7-8.tgz(r-4.4-arm64)arules_1.7-8.tgz(r-4.3-x86_64)arules_1.7-8.tgz(r-4.3-arm64)
arules_1.7-8.tar.gz(r-4.5-noble)arules_1.7-8.tar.gz(r-4.4-noble)
arules_1.7-8.tgz(r-4.4-emscripten)arules_1.7-8.tgz(r-4.3-emscripten)
arules.pdf |arules.html
arules/json (API)
NEWS

# Install 'arules' in R:
install.packages('arules', repos = c('https://mhahsler.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mhahsler/arules/issues

Datasets:
  • Adult - Adult Data Set
  • AdultUCI - Adult Data Set
  • Epub - The Epub Transactions Data Set
  • Groceries - The Groceries Transactions Data Set
  • Income - The Income Data Set
  • IncomeESL - The Income Data Set
  • Mushroom - The Mushroom Data Set as Transactions
  • SunBai - The SunBai Weighted Transactions Data Set

On CRAN:

arulesassociation-rulesfrequent-itemsets

14.12 score 194 stars 28 packages 3.0k scripts 34k downloads 42 mentions 99 exports 3 dependencies

Last updated 3 months agofrom:ba02177e26. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-win-x86_64OKOct 27 2024
R-4.5-linux-x86_64OKOct 27 2024
R-4.4-win-x86_64OKOct 27 2024
R-4.4-mac-x86_64OKOct 27 2024
R-4.4-mac-aarch64OKOct 27 2024
R-4.3-win-x86_64OKOct 27 2024
R-4.3-mac-x86_64OKOct 27 2024
R-4.3-mac-aarch64OKOct 27 2024

Exports:%ain%%in%%oin%%pin%abbreviateaddAggregateaddComplementaffinityaggregateaprioricoercecompatiblecoveragecrossTableDATAFRAMEdecodediscretizediscretizeDFdissimilarityduplicatedeclatencodefilterAggregatefim4rgeneratingItemsetsheadhitsimageinfoinfo<-initializeinspectinterestMeasureintersectis.closedis.elementis.generatoris.maximalis.redundantis.significantis.subsetis.supersetitemFrequencyitemFrequencyPlotitemInfoitemInfo<-itemIntersectitemLabelsitemLabels<-itemsitems<-itemSetdiffitemsetInfoitemsetInfo<-itemsetsitemUnionlabelslhslhs<-LISTmatchmergenitemsplot.associationsplot.itemMatrixpredictqualityquality<-random.patternsrandom.transactionsread.PMMLread.transactionsrecoderhsrhs<-ruleInductionrulessamplesetdiffsetequalshowsizesortsubsetsummarysupportsupportingTransactionsttailtidListstoLongFormattransactionInfotransactionInfo<-transactionsunionuniqueweclatwritewrite.PMML

Dependencies:genericslatticeMatrix

Introduction to arules

Rendered fromarules.Rnwusingutils::Sweaveon Oct 27 2024.

Last update: 2021-05-17
Started: 2015-10-12

Readme and manuals

Help Manual

Help pageTopics
Abbreviate item labels in transactions, itemMatrix and associationsabbreviate abbreviate,itemMatrix-method abbreviate,itemsets-method abbreviate,rules-method abbreviate,tidLists-method abbreviate,transactions-method
Add Complement-items to TransactionsaddComplement addComplement,transactions-method
Adult Data SetAdult adult AdultUCI
Computing Affinity Between Itemsaffinity affinity,itemMatrix-method affinity,matrix-method
Class APappearance - Specifying the appearance Argument of Apriori to Implement Rule TemplatesAPappearance APappearance-class coerce,list,APappearance-method coerce,NULL,APappearance-method coercion-APappearance
Mining Associations with the Apriori AlgorithmAPRIORI Apriori apriori
Classes AScontrol, APcontrol, ECcontrol - Specifying the control Argument of Apriori and EclatAPcontrol APcontrol-class AScontrol AScontrol-class AScontrol-classes coerce,list,APcontrol-method coerce,list,ECcontrol-method coerce,NULL,APcontrol-method coerce,NULL,ECcontrol-method coerce-AScontrol control ECcontrol ECcontrol-class initialize,AScontrol-method show,AScontrol-method
Classes ASparameter, APparameter, ECparameter - Specifying the parameter Argument of APRIORI and ECLATAPparameter APparameter-class ASparameter ASparameter-class ASparameter-classes coerce,list,APparameter-method coerce,list,ECparameter-method coerce,NULL,APparameter-method coerce,NULL,ECparameter-method coercion ECparameter ECparameter-class initialize,APparameter-method initialize,ASparameter-method initialize,ECparameter-method parameter show,ASparameter-method
Class associations - A Set of Associationsassociations associations-class head head,associations-method info info,associations-method info<- info<-,associations-method initialize,associations-method items items,associations-method items<- labels,associations-method length,associations-method plot plot.associations plot.itemMatrix quality quality,associations-method quality<- quality<-,associations-method show,associations-method summary.associations-class t,associations-method tail tail,associations-method
Combining Association and Transaction Objectsc c,itemMatrix-method c,itemsets-method c,rules-method c,tidLists-method c,transactions-method
Confidence Intervals for Interest Measures for Association Rulesconfint confint.rules
Calculate coverage for rulescoverage coverage,rules-method
Cross-tabulate joint occurrences across pairs of itemscrossTable crossTable,itemMatrix-method
Data.frame Representation for arules ObjectsDATAFRAME DATAFRAME,itemMatrix-method DATAFRAME,itemsets-method DATAFRAME,rules-method
Convert a Continuous Variable into a Categorical Variablebinning discretize discretizeDF
Dissimilarity Matrix Computation for Associations and Transactionsdissimilarity dissimilarity,associations-method dissimilarity,itemMatrix-method dissimilarity,matrix-method dist
Find Duplicated Elementsduplicated duplicated,itemMatrix-method duplicated,itemsets-method duplicated,rules-method
Mining Associations with EclatECLAT Eclat eclat
The Epub Transactions Data SetEpub
Methods for "[": Extraction or Subsetting arules Objects"[-methods" extract [,itemMatrix,ANY,ANY,ANY-method [,itemsets,ANY,ANY,ANY-method [,rules,ANY,ANY,ANY-method [,tidLists,ANY,ANY,ANY-method [,transactions,ANY,ANY,ANY-method
Interface to Mining Algorithms from fim4rcarpenter fim4r FPgrowth fpgrowth IsTa ista RElim relim SaM sam
The Groceries Transactions Data SetGroceries groceries
Support for Item HierarchiesaddAggregate aggregate aggregate,itemMatrix-method aggregate,itemsets-method aggregate,rules-method filterAggregate hierarchy
Computing Transaction Weights With HITShits
Visual Inspection of Binary Incidence Matricesimage image,itemMatrix-method image,tidLists-method image,transactions-method
The Income Data SetIncome income IncomeESL
Display Associations and Transactions in Readable Forminspect inspect,itemMatrix-method inspect,itemsets-method inspect,rules-method inspect,tidLists-method inspect,transactions-method
Calculate Additional Interest MeasuresinterestMeasure interestMeasure,itemsets-method interestMeasure,rules-method
Find Closed Itemsetsis.closed is.closed,itemsets-method
Find Generator Itemsetsis.generator is.generator,itemsets-method
Find Maximal Itemsetsis.maximal is.maximal,itemMatrix-method is.maximal,itemsets-method is.maximal,rules-method
Find Redundant Rulesis.redundant is.redundant,rules-method
Find Significant Rulesis.significant is.significant,rules-method
Find Super and Subsetsis.subset is.subset,associations-method is.subset,itemMatrix-method is.superset is.superset,associations-method is.superset,itemMatrix-method
Item Coding - Conversion between Item Labels and Column IDscompatible compatible,associations-method compatible,itemMatrix-method decode decode,list-method decode,numeric-method encode encode,character-method encode,list-method encode,numeric-method itemCoding itemcoding recode recode,itemMatrix-method recode,itemsets-method recode,rules-method
Getting Frequency/Support for Single ItemsitemFrequency itemFrequency,itemMatrix-method itemFrequency,tidLists-method
Creating a Item Frequencies/Support Bar PlotitemFrequencyPlot itemFrequencyPlot,itemMatrix-method
Class itemMatrix - Sparse Binary Incidence Matrix to Represent Sets of Itemscoerce,itemMatrix,list-method coerce,itemMatrix,matrix-method coerce,itemMatrix,ngCMatrix-method coerce,list,itemMatrix-method coerce,matrix,itemMatrix-method coerce,ngCMatrix,itemMatrix-method coercion-itemMatrix dim,itemMatrix-method dimnames,itemMatrix-method dimnames<-,itemMatrix,list-method initialize,itemMatrix-method itemInfo itemInfo,itemMatrix-method itemInfo<- itemInfo<-,itemMatrix-method itemLabels itemLabels,itemMatrix-method itemLabels<- itemLabels<-,itemMatrix-method itemMatrix itemMatrix-class itemsetInfo itemsetInfo,itemMatrix-method itemsetInfo<- itemsetInfo<-,itemMatrix-method labels,itemMatrix-method length,itemMatrix-method nitems nitems,itemMatrix-method show,itemMatrix-method show,summary.itemMatrix-method summary,itemMatrix-method summary.itemMatrix-class toLongFormat toLongFormat,itemMatrix-method
Class itemsets - A Set of Itemsetscoerce,itemsets,data.frame-method coercion-itemsets itemInfo,itemsets-method itemLabels,itemsets-method itemLabels<-,itemsets-method items,itemsets-method items<-,itemsets-method itemsets itemsets-class labels,itemsets-method length,itemsets-method nitems,itemsets-method show,itemsets-method show,summary.itemsets-method summary,itemsets-method summary.itemsets-class tidLists,itemsets-method
Itemwise Set OperationsitemIntersect itemIntersect,itemMatrix,itemMatrix-method itemSetdiff itemSetdiff,itemMatrix,itemMatrix-method itemSetOperations itemUnion itemUnion,itemMatrix,itemMatrix-method itemwiseSetOps
List Representation for Objects Based on Class itemMatrixLIST LIST,itemMatrix-method LIST,tidLists-method LIST,transactions-method
Value Matching%ain% %ain%,itemMatrix,character-method %in% %in%,associations,associations-method %in%,itemMatrix,character-method %in%,itemMatrix,itemMatrix-method %oin% %oin%,itemMatrix,character-method %pin% %pin%,itemMatrix,character-method match match,itemMatrix,itemMatrix-method match,itemsets,itemsets-method match,rules,rules-method
Adding Items to Datamerge merge,itemMatrix-method merge,transactions-method
The Mushroom Data Set as TransactionsMushroom mushroom
Read and Write PMMLpmml read.PMML write.PMML
Model Predictionspredict predict,itemMatrix-method
Classes dist, ar_cross_dissimilarity and ar_similarity - Proximity Matricesar_cross_dissimilarity-class ar_similarity-class proximity-classes
Simulate a Random Transactionsrandom.patterns random.transactions
Read Transaction Dataread read.transactions
Association Rule Induction from ItemsetsruleInduction ruleInduction,itemsets-method
Class rules - A Set of Rulescoerce,rules,data.frame-method coercion-rules generatingItemsets generatingItemsets,rules-method initialize,rules-method itemInfo,rules-method itemLabels,rules-method itemLabels<-,rules-method items,rules-method labels,rules-method length,rules-method lhs lhs,rules-method lhs<- lhs<-,rules-method nitems,rules-method rhs rhs,rules-method rhs<- rhs<-,rules-method rules rules-class show,summary.rules-method summary,rules-method summary.rules-class
Random Samples and Permutationssample sample,associations-method sample,itemMatrix-method
Set Operationsintersect,associations-method intersect,itemMatrix-method intersect.associations intersect.itemMatrix is.element,associations-method is.element,itemMatrix-method is.element.associations is.element.itemMatrix setdiff,associations-method setdiff,itemMatrix-method setdiff.associations setdiff.itemMatrix setequal,associations-method setequal,itemMatrix-method setequal.associations setequal.itemMatrix setOperations sets union,associations-method union,itemMatrix-method union.associations union.itemMatrix
Number of Items in Setssize size,itemMatrix-method size,itemsets-method size,rules-method size,tidLists-method
Sort AssociationsSORT sort sort,associations-method
Subsetting Itemsets, Rules and Transactionssubset subset,itemMatrix-method subset,itemsets-method subset,rules-method
The SunBai Weighted Transactions Data SetSunBai sunbai
Support Counting for Itemsetssupport support,associations-method support,itemMatrix-method
Supporting TransactionssupportingTransactions supportingTransactions,associations-method
Class tidLists - Transaction ID Lists for Items/Itemsetscoerce,itemMatrix,tidLists-method coerce,list,tidLists-method coerce,tidLists,itemMatrix-method coerce,tidLists,list-method coerce,tidLists,matrix-method coerce,tidLists,ngCMatrix-method coerce,tidLists,transactions-method coerce,transactions,tidLists-method coercion-tidLists dim,tidLists-method dimnames,tidLists-method dimnames<-,tidLists,list-method initialize,tidLists-method itemInfo,tidLists-method itemInfo<-,tidLists-method itemLabels,tidLists-method labels,tidLists-method length,tidLists-method show,summary.tidLists-method show,tidLists-method summary,tidLists-method summary.tidLists-class t,tidLists-method tidLists tidLists-class transactionInfo,tidLists-method transactionInfo<-,tidLists-method
Class transactions - Binary Incidence Matrix for Transactionscoerce,data.frame,transactions-method coerce,list,transactions-method coerce,matrix,transactions-method coerce,ngCMatrix,transactions-method coerce,transactions,data.frame-method coerce,transactions,list-method coerce,transactions,matrix-method coercion-transactions dimnames,transactions-method dimnames<-,transactions,list-method initialize,transactions-method items,transactions-method show,summary.transactions-method show,transactions-method summary,transactions-method summary.transactions-class t,transactions-method t-transactions toLongFormat,transactions-method transactionInfo transactionInfo,transactions-method transactionInfo<- transactionInfo<-,transactions-method transactions transactions-class
Remove Duplicated Elements from a Collectionunique unique,associations-method unique,itemMatrix-method
Mining Associations from Weighted Transaction Data with Eclat (WARM)WARM warm WECLAT weclat
Write Transactions or Associations to a Filewrite write,associations-method write,transactions-method write.csv