Kom igångKom igång gratis

Transactionalizing the online data frame

Back to the online retail transactions data from Chapter 1! The cleaned version of the dataset is loaded in your workspace and is denoted as Online_Retail_clean. Before being able to apply algorithms to drive your Market Basket Analysis, you need to transactionalize your data which will enable you to have a quicker and more efficient way of extracting association rules later on.

Recall that in this dataset, the product or item being purchased is described in the column Description while the column InvoiceNo refers to a unique invoicing number which you can consider as a transaction ID.

Den här övningen är en del av kursen

Market Basket Analysis in R

Visa kurs

Interaktiv övning med praktiskt arbete

Testa den här övningen genom att slutföra den här exempelkoden.

# Splitting transactions
data_list = ___(Online_Retail_clean$___,
                  Online_Retail_clean$___)
Redigera och kör kod