November 2016
Beginner to intermediate
959 pages
43h 46m
English
Before creating a mining association rule, you need to transform the data into transactions. In the following recipe, we will introduce how to transform either a list, matrix, or data frame into transactions.
In this recipe, we will generate three different datasets in a list, matrix, or data frame. We can then transform the generated dataset into transactions.
Perform the following steps to transform different formats of data into transactions:
arule:> install.packages("arules") > library(arules)
> tr_list = list(c("Apple", "Bread", "Cake"), + c("Apple", "Bread", ...
Read now
Unlock full access