June 2017
Beginner to intermediate
576 pages
15h 22m
English
Once the data has been coerced to transaction form, we can use the inspect function to examine the data.
If you happen to have the tm package loaded (which we will use later), you must preface inspect with arules::inspect, since there is also an inspect function in the tm package that serves a different purpose.
If you run an inspect command on the first five records, you can see that the data is in basket format, that is, each invoice shows the itemsets, delimited by {}, that are associated with each invoice:
arules::inspect(trans4[1:5]) ...