June 2017
Beginner to intermediate
576 pages
15h 22m
English
Now that you know how to run association rules using the coerce to dataframe method, we will now illustrate the write to file method:
In the write to file method, each item is written to a separate line, along with the identifying key, which in our case is the InvoiceId
The advantage to the write to file method is that very large data files can be accumulated separately, and then combined together if needed
You can use the file.show function to display the contents of the file that will be input to the association rules algorithm:
setwd("C:/PracticalPredictiveAnalytics/Data")load("OnlineRetail.full.Rda")OnlineRetail <- OnlineRetail[1:100,]nrow(OnlineRetail)> [1] 268034 head(OnlineRetail) ...